A web application inspired by Pinterest, built using MongoDB, Express.js, EJS & Node.js
- User Authentication: Secure login and registration system.
- Image Uploads: Users can upload and manage images.
- Boards: Organize images into boards.
- Responsive Design: Optimized for various screen sizes.
PinterestProject/
├── Models/ # Mongoose schemas for MongoDB collections
├── db/ # Database connection and configuration
├── routes/ # Express route handlers
├── views/ # EJS templates for server-side rendering
├── .gitignore # Specifies files and directories to be ignored by Git
├── App.js # Main application file
├── package.json # Project metadata and dependencies
└── package-lock.json # Exact versions of npm dependencies
-
Clone the repository:
git clone https://github.com/ShreyasDutt/PinterestProject.git
-
Navigate to the project directory:
cd PinterestProject -
Install dependencies:
npm install
-
Set up environment variables:
Create a
.envfile in the root directory and add the following:MONGO_URI=your_mongodb_connection_string PORT=3000 SESSION_SECRET=your_session_secret
Replace
your_mongodb_connection_stringandyour_session_secretwith your actual MongoDB URI and a secret key for session management.
-
Start the development server:
npm start
-
Access the application:
Open http://localhost:3000 in your browser.