Webpages for telescope slot booking and creation for Cepheid.
- Frontend: React
- Backend: Node
- Database: MYSQL
- Misc: Express, Axios, Sequelize
To install dependencies, run
npm install
Edit URL in frontend/src/components/TelescopeBooking.js to be the address of the backend server. backend/serviceAccount.json is not public here. It is needed for firebase authentication services.
Create a database 'cepheid' and two tables. Use the commented code in backend/index.js for this.
Manually insert gmail ids of admins: INSERT INTO admin VALUES("[email protected]");
Removal of an admin: DELETE FROM admin WHERE emailid = "[email protected]";
- Book a slot
- User and guide details are hidden from other users
- Create a slot
- Cancel a slot
- Clear past slots from database
- Sees all details for slots
- Blue: available
- Red: not available
- Green: booked