Integrated Node.js API with MongoDB example
- 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!