All code was based basic course about javascript by Rocketseat.
Steps:
- To install node;
- To install chocolatey;
- Run: npom init -y;
- To install express;
- Create main file for aplication: server.js;
- To install nodemon: npm install -D nodemon
Database: Run mongo in docker:
- docker pull mongo;
- docker run --name mongodb -p 27017:27017 -d mongo
- docker start NAME_IMAGE_DOCKER For to view database:
- download Rodo 3T;
- Connect to docker's mongo;
Library for to use the mongo in api:
- npm install mongoose;
npm install require-dir;