This monorepo templates a containerized barebones MEAN stack architecture.
- MongoDB - Document based NOSQL database, ideal for small scale JavaScript based projects.
- Express.js - Minimalist web framework running on Node.js.
- Angular - Front-End Javascript Framework. Do not confuse with Angular.js.
- Node.js - Server-side JavaScript Runtime, the backbone of all our services/containers.
These technologies are not part of the MEAN stack, but are implemented in this repository in order to improve the development experience.
- Docker - Virtualization Engine for containerizing our application's architecture. This repo in particular leverages Docker Compose to configure, build, initialize, and tear down our multi-container application using simple Up and Down commands within Docker's CLI.
- NGINX - Open Source Web Server, used by our docker containers to mount our Angular SPA application.
This Article by MongoDB offers a good primer to those new to the MEAN Stack.
To build and run the docker containers all at once (and in the correct order), simply run:
docker compose up -d --build
To stop the containers all at once, run:
docker compose down --remove-orphans