- Table of Contents
- Introduction
- Features
- Technologies
- Installation
- Usage
- API Endpoints
- Contributing
- License
This project is a mini-clone of the popular travel website TripAdvisor. It's built using Node.js, Express, and MongoDB, and provides a simplified version of some of the core features of TripAdvisor.
- User Authentication
- Browse Attractions
- Search Cities
- Image Uploads
- Error Handling
- Node.js
- Express
- MongoDB
- Middleware for Error Handling, Image Uploads, and Data Formatting
- Clone the repository:
git clone https://github.com/mustachemo/tripadvisor_mini_clone.git
2. Install dependencies:
```bash
npm install
-
Create a .env file in the root directory and add the following:
4. Start the server:
```bash
npm start
- Open http://localhost:3000 in your browser
- Create a user account
- Browse attractions
- Search cities
- Upload images
- View your profile
- Edit your profile
- Delete your profile
- Logout
- Login
GET /: Home Page POST /login: Login POST /signup: Signup GET /attractions/:id: Attraction Details PUT /attractions/:id: Edit Attraction DELETE /attractions/:id: Delete Attraction
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
ISC"