- backend runs on localhost:8000/api
- frontend runs on localhost:3000
-
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
-
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"
}
- Run backend:
cd backend
npm start
go to:
http://localhost:8000/api
- Run backend
cd frontend
npm start
go to:
http://localhost:3000/
- 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