This project is a simple web application built using React and GraphQL. It allows users to log in, view events, create events, and manage bookings. The application uses a MongoDB database for data storage, and the backend server runs on port 8000, while the frontend is hosted on port 3000.
-
User Authentication: Users can log in to the application securely.
-
View Events: Once logged in, users can view a list of events with details such as title, date, price, and description.
-
Create Events: Authenticated users can create new events by providing the necessary information.
-
Manage Bookings: Although the logic for creating and canceling bookings exists on the backend, this feature is not yet updated in the frontend.
- Clone this repository using
git clone https://github.com/your-username/your-repo.git
- Navigate to the project directory using
cd <repository>
- Install the necessary dependencies using
npm install
- Start the development server using
npm start
- Navigate to frontend directory using
cd frontend
- Install the necessary dependencies using
npm install
- Start the front end development server using
npm start
- Open the application in your browser at
http://localhost:3000
- To access graphQL open the appliction in your browser at
http://localhost:8000/graphql
Note - I have configured the database to be publically accessible, but since I do not have a premium account it might not work. When logging in, you might encounter a MongoDB error. Please email me at postshlok@gmail.com for access to the database.