Skip to content

anishVermaIsHere/polls-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD - Poll app REST API in Express JS

Follow these steps to use

  1. 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.

  1. Then create .env file into your app/project folder not in src 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.

  1. After the installation of all dependencies and environment setup. Now, you have to run last command npm start.

  2. Now your server will start successfully.