Educado-App / educado-backend

The repository for the educado content delivery services
GNU General Public License v3.0
2 stars 4 forks source link
express javascript nodejs rest-api

Educado backend

Backend for both the Educado webpage (content creator page) and the Educado mobile application (student page). It mainly serves the webpage and application with data from the database.

Main dependencies:

Step-by-step guide to run Educado development setup

Below is a short guide explaining how to set up and run the educado backend in development mode.

Setting up Node environment

Setting up local repository

The .env file should contain the following values:

  1. GOOGLE_CLIENT_ID
  2. GOOGLE_CLIENT_SECRET
  3. MONGO_URI
  4. MONGO_URI_TEST
  5. TOKEN_SECRET
  6. COOKIE_KEY
  7. GOOGLE_APPLICATION_CREDENTIALS
  8. GMAIL_USER
  9. GMAIL_APP_PASSWORD

The gcp_service.json file should contain the following fields:

  1. type
  2. project_id
  3. private_key_id
  4. private_key
  5. client_email
  6. client_id
  7. auth_uri
  8. token_uri
  9. auth_provider_x509_cert_url
  10. client_x509_cert_url
  11. universe_domain

Remember, these secrets are exactly that... Secrets... So make extra sure they are git-ignored (or someone will be very mad)

Installing node dependencies

Run app in development mode

Run app in production mode

Docker Commands

Notes