To fast forward API development, I will be using kaloraat from npm which will generate server/API in a matter of seconds.

npm i kaloraat -g

Create server folder inside your project. Then get inside server and run this command.


Now update .env variables with database connection uri and sendgrid key for sending emails.

Now run npm install && npm start and visit http://localhost:8000/api to see your api running.

Look into server/routes folder for all the available endpoints.