A full-stack Virtual Art Gallery web application built with the MERN stack, designed to connect artists, curators, and art enthusiasts in a digital gallery experience.
Artists can upload and manage their artworks, curators/admins can review and manage submissions, and visitors can explore and view artwork through the gallery.
- Upload artworks
- Manage artist profile
- View uploaded artworks
- Manage submitted artwork
- Review submitted artworks
- Approve or reject artworks
- Manage artists
- Manage gallery content
- Browse available artworks
- Explore the virtual gallery
- View artwork details
- Discover different artists
- User registration
- Login system
- Role-based access
- Protected user areas
- React.js
- Node.js
- Express.js
- MongoDB
- Mongoose
Art-Gallery/
│
├── backend/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ ├── middleware/
│ ├── config/
│ └── server.js
│
├── public/
│
├── src/
│ ├── assets/
│ ├── components/
│ ├── pages/
│ ├── App.jsx
│ ├── main.jsx
│ └── ...
│
├── .gitignore
├── eslint.config.js
├── index.html
├── package.json
├── package-lock.json
├── vite.config.js
└── README.md
Follow the steps below to run the project locally.
git clone https://github.com/shivanimourya2/Art-Gallery.gitNavigate into the project:
cd Art-GalleryInstall the required dependencies:
npm installStart the Vite development server:
npm run devThe frontend will be available at the local URL provided by Vite, usually:
http://localhost:5173
npm run dev # Start development server
npm run build # Build the application for production
npm run preview # Preview the production build
npm run lint # Run ESLintOpen a second terminal and navigate to the backend:
cd backendInstall backend dependencies:
npm installStart the backend server using the configured development command:
npm run devIf the project uses a standard start script instead:
npm startThe application uses MongoDB for data storage.
You can use either:
- MongoDB Community Server
- MongoDB Atlas
Make sure your MongoDB connection string is configured in the backend environment variables.
Create a .env file inside the backend directory.
Example:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key| Variable | Description |
|---|---|
PORT |
Port used by the backend server |
MONGO_URI |
MongoDB connection string |
JWT_SECRET |
Secret key used for authentication |
⚠️ Never commit your.envfile or other sensitive credentials to GitHub.
For local development, run the frontend and backend in separate terminals.
cd Art-Gallery
npm install
npm run devcd Art-Gallery/backend
npm install
npm run devMake sure MongoDB is running and the backend .env file is properly configured.
Artist
│
▼
Upload Artwork
│
▼
Curator/Admin Review
│
├── Approve ──► Public Gallery
│
└── Reject
Visitors can browse the artworks available in the public gallery and view their details.
Shivani Mourya