This project has now ended. Thank you to all our wonderful volunteers who made it possible. For posterity, there are images of the site as it was at the end of 2020 in hospitalhero-images/.
HospitalHero connects healthcare workers (docs, nurses, specialists, support staff) with volunteers who can provide basic needs during the COVID-19 pandemic response. Please share with anyone you know who needs assistance or can provide it!
We'd love your help! Please join us in Slack.
The below steps assume you've forked and cloned the repo to your local machine.
- Bootstrap postgres with Docker or locally
- Install Ruby v2.7.0 (see
.ruby-version
; also, we recommend rvm to manage ruby versions.) - Run
bundle
- Install Yarn (On OS X:
brew install yarn
) - Run
yarn
- Run
rails db:create db:migrate
- In one Terminal window, run
bin/webpack-dev-server
. In a second window, runrails s
. - Visit http://localhost:3000
- If working with emails, map localhost to
mailcatcher
in your/etc/hosts
file and rungem install --no-document mailcatcher && mailcatcher
in another window.
Install Docker and docker-compose
docker-compose up -d
- Prefix rails commands with the database url, like this:
export DATABASE_URL="postgresql://127.0.0.1/feedadoc_development?pool=5" && rails s
Install Postgres (on OS X you can use brew
to install it or run Postgres.app
- Use
psql
to create a PG user calledfeedadoc
.
CREATE USER feedadoc WITH SUPERUSER PASSWORD 'password1';
Visit http://localhost:3000/graphiql to access the in-browser GraphQL IDE.