To run sample project, you need a Firebase project. You can create a new one or reuse existing.
- Open Authentication module in Build category
- Setup a new sign-in method, select Google provider
- Make sure Google Sign-in is enabled
- In your Firebase project, open Project settings and select Service account tab
- Having selected Firebase Admin SDK, press Generate new private key at the bottom
- Downloaded file, rename to admin.json and place it in resources at
server/src/main/resources
- Run
main
function inApplication.kt
, server is running at port 8080
- In your Firebase project, open Project settings and select General tab (should be preselected)
- Scroll down to "Your apps" section, press button to add new Web App
- Register new Web App, opt out from hosting
- Copy
firebaseConfig
content from displayed window - Paste the content into
web/admin.json
file, making sure it's valid JSON (double quotes around keys, remove trailing semicolon etc.) - Install dependencies via
yarn
inweb/
directory - Start project via
yarn start