This repository contains the code for a Travel and Tourism website that allows users to book tickets for monuments, adventure sports, religious places, and museums. The website is built using a tech stack that includes React.js, Tailwind CSS, Autoprefixer, Node.js, MongoDB Atlas, Mongoose, Express.js, and JWT tokens.
- User Authentication: Users can sign up and log in securely using JWT tokens.
- User Profiles: Registered users can view their profiles and booking history.
- Ticket Booking: Users can book tickets for monuments, adventure sports, religious places, and museums.
- Responsive Design: The website is responsive and mobile-friendly.
The website is built using the following technologies:
- React.js: A JavaScript library for building user interfaces.
- Tailwind CSS: A utility-first CSS framework for styling the website.
- Autoprefixer: A PostCSS plugin to parse CSS and add vendor prefixes.
- Node.js: A JavaScript runtime for building server-side applications.
- MongoDB Atlas: A cloud-based database service for storing data.
- Mongoose: An Object Data Modeling (ODM) library for MongoDB and Node.js.
- Express.js: A web application framework for building server-side applications.
- JWT Tokens: JSON Web Tokens are used for secure user authentication.
To run this project on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/travel-tourism-website.git cd Final Voyage
-
Install the project dependencies:
npm install
-
Start the development server:
npm start
-
The website will be accessible at
http://localhost:3000
in your web browser.
-
Create a MongoDB Atlas account if you don't have one.
-
Create a new cluster and configure the database settings.
-
Obtain the connection string from MongoDB Atlas.
-
Create a
.env
file in the project root directory and add the following:MONGODB_URI=your-mongodb-uri
Replace
your-mongodb-uri
with the actual connection string you obtained from MongoDB Atlas.
The application's source code is organized as follows:
src
: Contains the front-end code built using React.js.server
: Contains the back-end code built using Node.js, Express.js, and Mongoose.public
: Contains public assets like images and icons.package.json
: Defines project dependencies and scripts.README.md
: This readme file.
This project is licensed under the MIT License. See the LICENSE file for more details.
Please feel free to contribute to and enhance this project. Enjoy building your Travel and Tourism website!