Skip to content

Events Booking Api using Graphql, Node.js (Express), React & MongoDb

Notifications You must be signed in to change notification settings

super-jb/EventBookingApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Events Booking Api using Graphql GraphQL, Node.js (Express) Node, React React & MongoDb MongoDb

Notes

  • backend runs on localhost:8000/api
  • frontend runs on localhost:3000

Steps

  1. Go to mongodb.com and setup a new cluster, new user (with permissions to read/write) and security (IP whitelisting) https://www.youtube.com/watch?v=ugI1riTacbw

  2. update the backend nodemon.js file with your values

"env": {
  "MONGO_USER": "YOUR MONGO USERNAME",
  "MONGO_PASSWORD": "YOUR MONGO PASSWORD",
  "MONGO_DATABASE": "YOUR MONGO DATABASE NAME",
  "JWT_SECRET": "A SECRET YOU DEFINE TO ENCRYPT / DECRYPT PASSWORDS"
}
  1. Run backend:
cd backend
npm start

go to: http://localhost:8000/api

  1. Run backend
cd frontend
npm start

go to: http://localhost:3000/

  1. Play around with the UI
  • create an account (can use fake emails, no email confirmations sent)
  • login and create some Events
  • logout
  • create a different account
  • login with new account and create some Events
  • go back and forth between accounts, create Events and confirm Bookings

About

Events Booking Api using Graphql, Node.js (Express), React & MongoDb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published