This is a simple web application built with Node.js and Express, featuring a static frontend and a backend connected to a MongoDB database. The project is containerized using Docker and includes a MongoDB service and a Mongo Express web-based admin interface for database management. All services are managed using Docker Compose for easy local development and testing.
- Node.js Express server
- Static frontend (HTML/CSS)
- MongoDB database
- Mongo Express admin interface
- Docker Compose setup
-
Clone the repository:
git clone <repository-url> cd docker-testapp-main
-
Install Node.js dependencies:
npm install
-
Start the application:
node server.js
-
Start MongoDB and Mongo Express using Docker Compose:
docker-compose -f mongodb.yaml up
-
Access the app:
- Web app: http://localhost:5050
- Mongo Express: http://localhost:8081
docker-testapp-main/
│
├── server.js
├── package.json
├── mongodb.yaml
├── public/
│ ├── index.html
│ └── style.css
└── README.md
This project is licensed under the MIT License.