<<<<<<< HEAD
Travel&Go is a modern travel planning website built with the MERN stack (MongoDB, Express.js, React.js, Node.js). It helps users plan their trips with features like destination search, trip planning, AI-based itinerary suggestions, and more.
Added a new gitignorefile
- User Authentication (Login/Register)
- Destination Search
- Trip Planning with Calendar
- AI-Based Itinerary Suggestions
- Chatbot Assistant
- Weather Forecast
- Budget Estimator
- Save & Share Trips
- Customer Visit Tracking (Hotel Bookings, Flight Bookings, Activities, Total Spending)
- Node.js (v14 or higher)
- npm (v6 or higher)
- MongoDB (for production)
- Clone the repository:
git clone <repository-url>
cd travel-and-go- Install backend dependencies:
npm install- Install frontend dependencies:
cd client
npm install- Start the backend server:
# From the root directory
npm run dev- Start the frontend development server:
# From the client directory
cd client
npm startThe application will be available at:
- Frontend: http://localhost:3000
- Backend: http://localhost:5000
Create a .env file in the root directory with the following variables:
PORT=5000
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
POST /api/auth/register- Register a new userPOST /api/auth/login- Login a user
GET /api/trips- Get all trips for a userPOST /api/trips- Create a new tripPUT /api/trips/:id- Update a tripDELETE /api/trips/:id- Delete a trip
GET /api/customer-visits- Get all customer visits for a userGET /api/customer-visits/:id- Get a specific customer visitPOST /api/customer-visits- Create a new customer visitPUT /api/customer-visits/:id- Update a customer visitDELETE /api/customer-visits/:id- Delete a customer visit
travel-and-go/
├── client/ # React frontend
│ ├── src/
│ │ ├── components/ # Reusable components
│ │ ├── pages/ # Page components
│ │ └── App.js # Main App component
├── models/ # MongoDB models
│ ├── User.js # User model
│ ├── Trip.js # Trip model
│ └── CustomerVisit.js # Customer visit model
├── routes/ # API routes
│ ├── auth.js # Authentication routes
│ ├── trips.js # Trip routes
│ └── customerVisits.js # Customer visit routes
├── middleware/ # Middleware functions
│ └── auth.js # Authentication middleware
├── server.js # Express server
├── package.json # Backend dependencies
└── README.md # Project documentation
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature)
Travel-Go Project updated by Rithik 6. Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.