This project is an Image Gallery built using the MERN stack (MongoDB, Express.js, React.js, Node.js) with Bootstrap for styling and Multer for image uploading. Users can save and delete images after authentication using JWT (JSON Web Tokens) for sign-in and login.
This project aims to provide a seamless and intuitive platform for users to manage and showcase their images effectively. Leveraging the power of the MERN stack along with Bootstrap and Multer, the Image Gallery project offers a robust solution for image management.
Users can securely sign in and log in using JWT authentication, ensuring data privacy and security throughout their interaction with the platform. With the ability to upload, save, and delete images, users have full control over their digital assets, making it a versatile tool for photographers, artists, and anyone passionate about visual content.
The integration of Bootstrap ensures a responsive and visually appealing interface across various devices, enhancing user experience and accessibility. Whether you're a professional photographer or an amateur enthusiast, the Image Gallery MERN Stack project provides a customizable and feature-rich solution for organizing and showcasing your images effortlessly. ๐๐ธ
โ
User authentication with JWT
โ
Image uploading using Multer
โ
Save and delete images
โ
Bootstrap for responsive styling
- MongoDB
- Express.js
- React.js
- Node.js
- Bootstrap
- Multer
- JWT
-
Setup Environment Variables:
- Create a
.envfile with the following parameters:MONGO_URI: URL for MongoDBJWT_SECRET: Any string for JWT secret
- Here I have used :-
MONGO_URI=mongodb://127.0.0.1:27017/image_upload JWT_SECRET=secretcode
- Create a
-
Navigate to Backend Directory:
- Open the main folder in the command prompt.
- Type
cd backendto navigate to the backend directory.
-
Install Dependencies:
- Run
npm installto install all required node_modules.
- Run
-
Start the Server:
- Run
node ./server.mjsto start the server-side application.
- Run
-
Navigate to Frontend Directory:
- Open the main folder in the command prompt.
- Type
cd frontendto navigate to the frontend directory.
-
Install Dependencies:
- Run
npm installto install all required node_modules.
- Run
-
Start the Client:
- Run
npm startto start the client-side application.
- Run
-
Access the Application:
- Visit
http://localhost:3000in your web browser to access the application.
- Visit