Skip to content

OysterSecret/NodeJsApiServer

 
 

Repository files navigation

Dockerized Node 7 + Express + MongoDB + Nginx

![Docker-Node-Express]

Purpose

This is boilerplate code that you can feel free to pick apart and use for building Node APIs with Docker, Node/Express, Mongoose, and Nginx. The Javascript uses ES6 syntax. There are basic GET/POST/PATCH/DELETE endpoints and corresponding database methods.

How to Install & Run

  1. Run npm i
  2. Run docker-compose up (Assuming you've installed docker for OSX/Windows or Docker toolkit)
  3. Server is accessible at http://localhost:3000 if you have Docker for Windows or Mac. Use http://localhost without specifying the port to hit the NGINX proxy. If you are using Docker toolkit, you'll need to hit the IP of the docker-machine (port rules are the same.)

About

docker + nginx + mongodb + express + oauth2rize

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.5%
  • Shell 3.2%
  • Nginx 1.5%
  • HTML 0.8%