Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.
/ intouch-web Public archive

The web server and application component of Abilitree InTouch, for client/staff schedule notifications.

Notifications You must be signed in to change notification settings

osu-cascades/intouch-web

Repository files navigation

Abilitree - InTouch

InTouch is a mobile and web application enabling Abilitree staff and clients to communicate through groups.

This intouch-web repository is for administrator operations such as managing users, groups, and notifications.

Prerequisites

Version

  • Ruby 2.4.1 (ruby -v)
  • Rails 5.1.4 (rails -v)
  • PostgreSQL 10.0 (psql --version)

Database Creation

  • Install PostgreSQL
    • Installation
      • Mac users might have to brew install postgresql if the pg gem cannot be found

Keys File

  • All of the app's secrets are stored in .env files for safe keeping
  • Create the following files in the root directory following the example format
    • .env.test
    • .env.development
    • .env.staging
    • .env.production

Running the Application

  • Run git clone https://github.com/osu-cascades/intouch-web.git in desired directory
  • Run bundle install or exec bundle install inside of the cloned repository
  • Run rake db:create:all
    • Note: The Postgres server installed above must be running
    • If you receive the error: FATAL: role "intouch" does not exist, you must create the role using psql -c 'create user intouch with superuser;' -U postgres
  • Run rails db:migrate
  • Run rails db:seed
  • Run brew install node or brew reinstall node
  • Run rails s or bundle exec rails s to start the application on http://localhost:3000/

Tests

Heroku

  • This application is hosted on Heroku in both a staging and production environment
  • Set up the Heroku remotes
    • Staging: git remote add staging https://git.heroku.com/abilitree-intouch-staging.git
    • Production: git remote add production https://git.heroku.com/abilitree-intouch.git
  • Deploy to Heroku
    • Staging: git push staging
    • Production: git push production
  • Run Rails console
    • Staging: heroku run rails console --remote staging
    • Production: heroku run rails console --remote production
  • View live logs
    • Staging: heroku logs --remote staging --tail
    • Production: heroku logs --remote production --tail

© 2019 Aaron Baker, Kyleen Gonzalez, Brad Cook, Hanna Bennett, Camron Fritz.

About

The web server and application component of Abilitree InTouch, for client/staff schedule notifications.

Resources

Stars

Watchers

Forks

Packages

No packages published