Simple GraphQL server implementation Using ReactJS, NodeJS and MongoDB.
-
Live Demo here.
- Test User Credentials
- Email:
[email protected]
- Password:
1234
- Email:
- Test User Credentials
-
Github Repository link.
Node JS Express Framework
is used as a building Backend part of this Website.MongoDB
used for Database to store Users and Events Details.GarphQL
is used to build APIs for this Website.React JS
is used as frontend Framework for building SPA.Bootswatch Minty Theme
is used as CSS Framework and the website is Responsive for all Devices.ChartJS
is used for Charting the responses and Data.JWT
is used for Authentication purpose.- Token will be stored in
Local Storage
of Client Browser. - Encrypt passwords with
bcrypt
ChartJS
is used for charting the Data got from Bookings.
-
Prerequisites
- NodeJS installed on your Local machine
- MongoDB installed on your local machine or have an Atlas Account.
-
Credentials Setup
- Create a MongoDB Atlas Account for Host this Project Online. Find Tutorials here.
-
Project Setup
-
Clone this Repository or Download the zip File.
>> git clone https://github.com/nil1729/event-booking-graphql
-
Create a new file
.env
on root directory and put following secrets on that file.MONGO_URI= <--- MongoDB Connection URL ---> JWT_SECRET= <--- JsonWebToken Secret Key --->
-
Run this command
>> npm run dev // to run the Full Project. >> npm run server // to start only backend server and go to http://localhost:5000 to test APIs on GraphQL Playground >> npm run Client // to start React Development server only (But it will not working alone as api depends on Backend also)
-
Made With โค by Nilanjan Deb