Simple NodeJs backend with MongoDb with public and private routes hosted on Heroku
This is s a simple RESTFUL API build with NodeJs and MongoDb hosted on Herokuarticles
Login in to MongoDb and create a cluster then white list your ip. Save the database connect credntials and set them in the .env as follows
DB_CLUSTER=yourclustername,
DB_NAME=yourdb,
DB_USER=yourdbuser,
DB_PASSWORD=yourdbpassword
Get All users and single user from the database over a protected route, follow and unfolow users.
Register and login providing only username and password
Create, update and delete articles, like and unlike posts, post comments
fetch all posts on a public route anda protected single post on aprotected route