This is a simple application that allows a user to post messages to a database (MongoDB instance) and retrieve messages from it.
This repo exists merely as an exercise in NoSQL data persistence and containerization.
- Docker
- Docker Compose
- Node.js 24.12
- MongoDB Community Edition 7.0
- Clone the repo
git clone https://github.com/rmmsia/simple-mongoose.git
cd simple-mongoose
- Create the
.envfile
cp .env.example .env
# Then edit .env to customise the values
- Build and start the containers
docker compose up -d --build
This:
- Builds the app images
- Starts all services (app, database)
It runs containers in the background, the logs and status of which can be found in the Docker Desktop dashboard.
- Access the app Open your browser at:
http://localhost:YOUR_APP_PORT
Where YOUR_APP_PORT is the port exposed in docker-compose.yaml/
- Stop the containers
docker compose down