Follow these steps to use
- Download this code as zip or run the command in git bash
git clone https://github.com/anishVermaIsHere/polls-api.git
and open visual studio code with this directory and run the command npm install
in terminal.
- Then create
.env
file into your app/project folder not insrc
which you created, open the.env
file then copy this code and paste
SERVER_PORT=<PORT_NO.>
DB_CONNECT_URL=<DB_URI>
JWT_PRV_KEY=7dsf4huotljet
and save it.
-
After the installation of all dependencies and environment setup. Now, you have to run last command
npm start
. -
Now your server will start successfully.