Skip to content

safehavennetwork/safehaven_portal

Repository files navigation

Safe Haven Secure Portal

This application handles interaction between Shelters, Advocates, Clients, and Safe Haven volunteers.

Setup

This is a pretty straightforward Rails application using MySQL for the database.

Install Ruby and Rails

Your setup may vary, but we recommend using rbenv or RVM to version your ruby environments. If you're on OS X, you can use Homebrew to help make things easier. If you're feeling adventurous, RailsInstaller may get you up and running on Windows. Please be aware that development on Windows will be different, and may require advanced knowledge when problems are encountered.

Install PostgreSQL

Checkout the PostgreSQL Installation Guides or you can use the PostgreSQL that comes with your Linux distribution.

Once that's done, be sure to add the safehaven portal user

sudo su - postgres
psql -c 'create user secure_portal createdb login;'

and that the secure_portal user is trusted for local user

sudo su -
/etc/init.d/postgresql stop
echo -e "local\tall\tsecure_portal\ttrust" >> /etc/postgresql/9.5/main/pg_hba.conf
/etc/init.d/postgresql start

Clone the repo

git clone [email protected]:safehavennetwork/safehaven_portal.git

Install Gems

bundle install

Create and setup your database

bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed

Spin up the app!

bundle exec rails s