A simple image gallery web application built with Node.js and Express. This project allows users to view, upload, and manage images through a web interface.
You can try the live demo here: Live Demo
- View a gallery of images
- Upload new images
- View single image details
- Responsive design with CSS
- RESTful routes for image management
_config.js # Custom configuration
Dockerfile # Docker container setup
Jenkinsfile # CI/CD pipeline configuration
package.json # Project metadata and dependencies
Procfile # Process definition for deployment
server.js # Main server file
models/ # Mongoose models
public/ # Static assets (CSS, JS, images)
routes/ # Express route handlers
test/ # Test files
views/ # EJS templates
- Node.js (v14 or higher recommended)
- npm
-
Clone the repository:
git clone https://github.com/nancynaomy/gallery.git cd gallery -
Install dependencies:
## Website You can try the live demo here: [Live Demo](https://https://gallery2-8u49.onrender.com/)
Build and run the Docker container:
docker build -t gallery-app .
docker run -p 3000:3000 gallery-appRun tests with:
npm test- Deployed to render.
- The
Jenkinsfileprovides a sample CI/CD pipeline for Jenkins.
- Application-specific settings can be found in
_config.js. - Environment variables can be set for production use.
This project is free to use.