Skip to content

AndersonRodr/basic-api-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a basic API using nodejs;

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;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published