Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jameslmartin/docker-node-mongo-starter
A tiny, Dockerized, web app example using Angular, Node, Express, and MongoDB.
https://github.com/jameslmartin/docker-node-mongo-starter
docker express mongodb nodejs
Last synced: about 1 month ago
JSON representation
A tiny, Dockerized, web app example using Angular, Node, Express, and MongoDB.
- Host: GitHub
- URL: https://github.com/jameslmartin/docker-node-mongo-starter
- Owner: jameslmartin
- Created: 2017-04-21T17:34:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T17:35:49.000Z (almost 8 years ago)
- Last Synced: 2024-11-07T17:49:32.535Z (3 months ago)
- Topics: docker, express, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mock Web App
This is a barebones web app using Docker, Node, Express, Mongo, and Angular. The purpose of this application is to demonstrate how to wire up a frontend and backend with simple routing that controls a server-side resource.## Server
The web server runs with Node and Express. Express provides a simple framework for routing requests to the correct controllers to modify resources. The backing store is Mongo, purely for its simple strategy of storing documents.## Client
The frontend is built with HTML5 and Angular.js, with some jQuery sprinkled in for easy DOM manipulation.### Build tools and running the project
This project is easiest to run with Docker. Once Docker is installed, you can run the app in 'production' mode by running:
`make prod`Prod will build the container for the web app, start the database, and start the application on `localhost:8080`.
### Development flow
To develop the project run, you can run:
`make init db dev``init` will install all the project's dependencies on your file system using a Docker container. `db` brings up the database, and `dev` brings up the app with live reloading, so when server files are edited, they will be immediately be reflected.
`make unit-test` will run the unit tests in a Docker container, and will re-run whenever you change code. This enables TDD.