Our family goals

Configuration

Environment variables

OFG_SUPPORT_MAIL

Mail for support requests
OFG_SUPPORT_MAIL=support@our-family-goals.com

Mail server account to send verification mails.

Example values:
smtp://user:pass@yourservice.com:587
smtps://user:pass@yourservice.com:465
MAIL_URL=smtp://user:pass@yourservice.com:587

OFG_MAIL_FROM

Mail to be used in "FROM" when sending mails from the system.
OFG_MAIL_FROM=support@our-family-goals.com

Examples

Run without seed data

This will not create any users

  MONGO_URL='mongodb://MONGO_USERNAME:MONGO_PASSWORD@MONGO_HOST:27017/DATABASE?authSource=admin'
  APP_ROOT_URL="http://localhost"
  docker rm -f our-goals
  docker run --name our-goals \
  -p 3000:3000 \
  -e ROOT_URL=${APP_ROOT_URL:-http://localhost} \
  -e MONGO_URL=$MONGO_URL \
  -e PORT=3000 \
  our-family-goals:latest
    

Example with Seed data ( accounts )

By setting the OFG_SEED to "1" when the application start it will create test accounts and family.

Enable seeding configuration

  MONGO_URL='mongodb://MONGO_USERNAME:MONGO_PASSWORD@MONGO_HOST:27017/DATABASE?authSource=admin'
  APP_ROOT_URL="http://localhost"
  docker rm -f our-goals
  docker run --name our-goals \
  -p 3000:3000 \
  -e OFG_SEED=1 \
  -e ROOT_URL=${APP_ROOT_URL:-http://localhost} \
  -e MONGO_URL=$MONGO_URL \
  -e PORT=3000 \
  our-family-goals:latest
    

Test parent account:

username: parent
password: parent

Test child account:

username: child
password: child