Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 535 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 535 Bytes

mongodb-node-api-example

Integrated Node.js API with MongoDB example

SETUP

  • Make sure you already installed mongoDB on your local
  • This project requires a mongoDB database, in this case it called arcade;
  • Import some records to database by running mongoimport --db arcade --collection users --file src/database/users.json
  • Install project dependencies (npm install)
  • Copy env.example as .env to set your environment variables
  • Before running your server app, run your local database
  • Run node app.js

Cheers!