- Clone the repo.
$ git clone https://github.com/donymvarkey/quiz-api.git
- Install the dependencies with npm.
$ cd quiz-api $ npm i
- Create a
.env
file in the project root directory and add the following contents.PORT=5000 SIGNATURE="j+PPRMUwtEWIF84RW0+EAx1A/DslXrM2zek/91E2ioU=" MONGO_URL="mongodb://localhost:27017/quiz"
- Run the node development server
You should see the following output in the terminal
$ npm run dev
{"level":"info","message":"Listening on http://localhost:5000"} {"level":"info","message":"Connected to MongoDB instance"}