1. Run this boilerplate on your local machine. Open the terminal, and run the following commands One by One.

terminal

Copy
git clone https://github.com/mddanishyusuf/buildapi-code.git [YOUR_APP_NAME] cd [YOUR_APP_NAME] npm install git remote remove origin

Now, if you open the project in your editor, the folder structure will look like this.

Build API Code Tree View

  1. Rename .env.example to .env.development. Run this command in your terminal to rename.

terminal

Copy
mv .env.example .env.development
  1. The server.js file that run the backend server. Now start the server by this command.

terminal

Copy
npm run dev

You will see message in logs Server is listening on port 3001