This is a full-stack web application built with Node.js, Express.js, and MongoDB using the MVC architecture. The project includes authentication and authorization functionalities along with complete CRUD operations.
- MVC architecture
- User authentication and authorization
- CRUD operations
- File uploads with Cloudinary
- Session management
- Flash messages for notifications
- Node.js: JavaScript runtime
- Express.js: Web framework for Node.js
- MongoDB: NoSQL database
- Mongoose: ODM for MongoDB
- EJS: Embedded JavaScript templating
- Passport: Authentication middleware
- Multer: Middleware for handling multipart/form-data
- Cloudinary: Cloud storage for images
-
Clone the repository:
git clone https://github.com/Rohit-Mangasule/wonderlust
-
Install dependencies:
npm install
-
Set up environment variables:
Create a
.env
file in the root directory and add the following:CLOUDINARY_CLOUD_NAME=your_cloud_name CLOUDINARY_API_KEY=your_api_key CLOUDINARY_API_SECRET=your_api_secret MONGO_URI=your_mongodb_uri SESSION_SECRET=your_session_secret
-
Run the application:
node app.js
The application should now be running on http://localhost:3000.
- Visit http://localhost:3000 to view the application.
- Register a new user or log in with existing credentials.
- Perform CRUD operations as per the functionalities provided in the application.