Skip to content

Climate action made easy. Fight for climate justice one action at a time

Notifications You must be signed in to change notification settings

youngppl/turninggreen_core

Repository files navigation

Build Status

rootup Core

This repo contains the backend for rootup.

Initial Setup

Dependencies

  • PostgreSQL
  • Node.js

Environment Variables

  • POSTGRES_PASS= [psql server password when you set it up]
  • GMAIL_DOMAIN=gmail.com
  • GMAIL_USERNAME= [the turninggreen email address]
  • GMAIL_PASSWORD= [the turninggreen email's password]

For first-time users, do the following

  1. install PostgreSQL and Node.js
  2. set up environment variables above
  3. bundle install
  4. rails db:create
  5. rails db:migrate

Deployment

  1. Start PostgreSQL server(for Windows: it should automatically run, but if not: net start [name of PostgreSQL service(ex: postgresql-x64-11)]
  2. Run bundle update
  3. then rails s.