- Run this boilerplate on your local machine. Open the terminal, and run the following commands One by One.
terminal
Copygit 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.
- Rename .env.example to .env.development. Run this command in your terminal to rename.
terminal
Copymv .env.example .env.development
- The server.js file that run the backend server. Now start the server by this command.
terminal
Copynpm run dev
You will see message in logs Server is listening on port 3001