- clone the project
git clone https://github.com/eslam-fakhry/quiztions.git
cd quiztions
npm i
cd functions
npm i
cd ..
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
- install firebase tools
npm i -g firebase-tools
- Next create a new firebase project here https://console.firebase.google.com
- Add authentication method "Email/Password" in authentication panel
- Add "real-time" database in database panel
- Add some temporary data to preserve it
- Add storage bucket in storage panel
- Copy .env.example to .env
cp .env.example .env
- From overview firebase console register new app
- Update .env with the configuration data generated
firebase login
- with the created firebase projectId
firebase use <projectId>
firebase deploy --only storage, database, functions
npm run serve
npm test
npm run build
firebase deploy --only hosting