A modern, responsive salon website built with Node.js and Express.
- Beautiful and responsive design
- Gallery/Lookbook with category filtering
- Mobile-friendly layout
- Animations for smooth user experience
- Node.js installed on your machine
- MongoDB (optional, will fallback to in-memory database if unavailable)
- Clone the repository or download the files
- Navigate to the project directory
- Install dependencies:
npm install- Copy the example environment file to create your own:
cp env.example .env- Open the
.envfile and customize the values:
# Server Configuration
PORT=3000
# MongoDB Configuration
MONGODB_URI=mongodb://127.0.0.1:27017/salon
# Session Secret (change this in production)
SESSION_SECRET=yoursalonsecret123
# Admin Credentials (change these in production)
ADMIN_USERNAME=nikhil
ADMIN_PASSWORD=123456
To start the server in development mode with automatic reloading:
npm run devTo start the server in production mode:
npm startThe website will be available at http://localhost:3000
app.js- Main application filedb/- Database connection and initializationmodels/- MongoDB data modelsviews/- EJS templatespublic/- Static assets (CSS, JavaScript, images)
After starting the application, you can access the admin panel at: http://localhost:3000/admin
Use the credentials defined in your .env file (default: username nikhil, password 123456).
Replace the placeholder images in public/images/ with your own photos.
Edit the EJS templates in views/ to customize the content.
Modify public/css/style.css to change the look and feel.
This project is licensed under the ISC License