GOOGLE_SERVICE_ACCOUNT
to the file path of the key. For example, GOOGLE_SERVICE_ACCOUNT='./private-key.json'
npm install -g firebase-tools
firebase init
FIRESTORE_EMULATOR_HOST='localhost:8080'
FIREBASE_STORAGE_EMULATOR_HOST='localhost:9199'
firebase emulators:start
OR run firebase emulator with persistent data:
exported-firebase-data
folder in root directorynpm run emulator
http://localhost:3000/api/auth/callback/discord
CLIENT ID
and CLIENT SECRET
into env.env.local
fileGOOGLE_SERVICE_ACCOUNT='./private-key.json'
DISCORD_CLIENT_ID='discord-client-id'
DISCORD_CLIENT_SECRET='dicord-client-secret'
TWITCH_CLIENT_ID='twitch-client-id'
TWITCH_CLIENT_SECRET='twitch-client-secret'
FIRESTORE_EMULATOR_HOST='localhost:8080'
FIREBASE_STORAGE_EMULATOR_HOST='localhost:9199'
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.