Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Moodli/codevscovid19_moodli_frontend-deprecated-

Repository files navigation

Note

The webapp has now changed to back-end rendering and therefore this frontend is now defunct.

Moodli

Your message has sentiment.

Prerequisites

  • Node >=10.10
  • Npm 6

Getting Started

  • Clone the repo
  • npm i
  • npm run dev

Run Full Powered Firebase App locally

If you want to run the application together with lambda functions locally, follow the steps:

  1. 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!

  2. Provide authentication credentials to your application code by setting the environment variable GOOGLE_APPLICATION_CREDENTIALS:

export GOOGLE_APPLICATION_CREDENTIALS="[PATH_TO_PRIVATE_KEY_JSON]"
  1. Run the App together with Firebase Emulator for functions:
npm run serve
  1. You also need to create a local tunnel for Webhooks. You need to open a new terminal window and run:
npx lt --port 5001

Deploy

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

Releases

No releases published

Packages

No packages published