This project contains a small authenticated app using google login. Playwright is used to run e2e test
-
install firebase cli
npm install -g firebase-tools
-
create a firebase project
Create a firebase project here
-
reset the firebase config in the project
npx ng add @angular/fire
Accept all the selections and select the project that was created in the previous step.
A quick look in app.module.ts
can help see if the schematic worked well.
In firebase console, select google identity provider
npm ci
npm start
Please follow the instructions here to get google credentials and create a file .env
at the root of the project with the following:
CLIENT_ID="xxx"
CLIENT_SECRET="xxx"
REFRESH_TOKEN="xxx"
npx playwright test