This project is an event booking website built with React for the frontend, Flask for the backend, and MongoDB for the database. The backend code can be found in the Backend
folder, while the frontend code is located in the Frontend
folder.
-
Clone the repository:
git clone https://github.com/KrishnaChaitanya20/Event_Ticketing.git
-
Set up the MongoDB database:
- Install MongoDB and start the MongoDB service.
- Create a new database named
event_ticketing
.
-
Update the environment variables:
- In
Backend
folder rename.env.example
to.env
- Update the database connection details in the
.env
file. - In
Frontend
folder rename.env.example
to.env
- Update the backend connection details in the
.env
file.
- In
You can either start the backend and frontend servers separately or use Docker Compose to run the entire application.
-
Open a terminal and navigate to the
Backend
folder:cd Backend
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the backend server:
python app.py
-
Open another terminal and navigate to the
Frontend
folder:cd Frontend
-
Install the required dependencies:
npm ci
-
Start the frontend server:
npm start
-
Ensure Docker and Docker Compose are installed on your machine.
-
Navigate to the root directory of the project where the
docker-compose.yml
file is located. -
Start the services using Docker Compose:
docker-compose up -d
-
Access the website in your browser at
http://localhost:3000
.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.