The webapp has now changed to back-end rendering and therefore this frontend is now defunct.
Your message has sentiment.
- Node >=10.10
- Npm 6
- Clone the repo
npm i
npm run dev
If you want to run the application together with lambda functions locally, follow the steps:
-
Go to Firebase Console and generate a new Firebase Admin SDK private key. Once generated it will be downloaded as JSON file. Please, put it in s safe directory and NEVER COMMIT IT!
-
Provide authentication credentials to your application code by setting the environment variable GOOGLE_APPLICATION_CREDENTIALS:
export GOOGLE_APPLICATION_CREDENTIALS="[PATH_TO_PRIVATE_KEY_JSON]"
- Run the App together with Firebase Emulator for functions:
npm run serve
- You also need to create a local tunnel for Webhooks. You need to open a new terminal window and run:
npx lt --port 5001
We use Firebase Cloud Functions with Firebase Hosting rewrite rules to host the Next.js app. Each individual page bundle is served in a new call to the Cloud Function which performs the initial server render.
In order to deploy run the following:
npm run deploy