- Install yarn.
npm install -g yarn
yarn install
yarn dev
npm install -g firebase-tools
firebase login
yarn deploy
Try This
- Navigate to: https://console.firebase.google.com/ (make sure you are using the same account as you used for login)
- Open your project, and navigate to 'Project Overview > Project settings'
- Scroll down to 'Your apps' section and click on the web-app symbol (</>)
- Follow the prompts and in the 2nd step, copy down the
const firebaseConfig
section as you will need it soon - Navigate to 'Build > Authentication', click 'Get started', and then follow the prompts to setup 'email/password' and 'Google' providers
- Navigate to 'Build > Firestore Database', click 'Create database', and select 'Start in test mode'
- Navigate to 'Build > Storage', click 'Get started', and select 'Start in test mode'
- In the root folder, copy
env.local.example
and rename toenv.local
and open it - Enter the
authDomain
,apiKey
,projectId
,storageBucket
intoenv.local
to their respective variables yarn dev
- Once you can run locally, run
yarn deploy
- Marge
- Khant
- Alec
- Patrick
Website URL: https://team-blue-8951b.web.app
We will be using issues for the group project. Go to the issues list to manage your progress.
Bookings
- Cannot book on a non-working day
- Cannot book at a non-working hour (Last timeslot should be: Closing time - smallest product by time)
- Cannot book a product that expires after close of day
- Cannot book a product at a time if capacity has been met (i.e. room capacity - current bookings < desired quantity)
- Date & Times that are fully booked should not be displayed
- Admin: Open/Closing times should be restricted to 15min intervals