forked frommakinhs/rest-api-tutorial
- Notifications
You must be signed in to change notification settings - Fork0
JavaScriptsShare/rest-api-tutorial
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This sample is published as part of the blog article atwww.toptal.com/blog:
Visitwww.toptal.com/blog and subscribe to our newsletter to read great posts
- Please make sure that you have:
- node.js installed (https://nodejs.org/)
- have mongodb installed and running locally (https://www.mongodb.com/)
- Using Windows, just open the terminal at where you installed mongo and run
mongod.exe
- Using Windows, just open the terminal at where you installed mongo and run
- run npm install in your root project folder
To run the project, please use a command line the following:
- npm start
- It will run the server at port 3600.
- Refactored mongoose to a proper common service.
- Added a Dockerfile and docker-compose configuration.
If you are familiar to docker and you have docker installed on your machine and just want to run the project without issues please do:
- docker-compose build
- docker-compose up
- It will run the mongodb at port 27017 (for testing purposes only).
- It will run the server at port 3600.
I've created a 2020 version of this project using Typescript. If you might be interested on it, please check the following repository:https://github.com/makinhs/expressjs-api-tutorial
About
No description, website, or topics provided.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- JavaScript99.0%
- Dockerfile1.0%