Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.83 KB

CONTRIBUTING.md

File metadata and controls

42 lines (25 loc) · 1.83 KB

Contributing

Thanks so much for your interest in contributing! 🎉🎉🎉🎉

Check out the open issues to see where you can contribute. You can also join our Slack channel (#quantifiedself) on the Open Humans Slack. You can send yourself an invite to the Slack through this link.

Setting up your development enviroment

The production version of this website is deployed to Heroku. Anticipating this deployment we run the local development version through heroku local, which requires you to have the heroku CLI installed globally.

We use pipenv for the Python package management. On MacOS it can be installed through Homebrew using brew install pipenv. (See the homebrew website for instructions on how to install brew).

Installing the development version:

  1. Download the repo: git clone [email protected]:OpenHumans/quantified-flu.git
  2. Enter the project folder: cd quantified-flu
  3. Set up packages: pipenv install --dev
  4. Activate the virtual environment: pipenv shell
  5. Set up Black pre-commit: pre-commit install

The key-value-store for background tasks is set up to be redis which you'll need to install separately and then start with redis-server for actual use. It can be installed through Homebrew as well, using brew install redis.

Settings for APIs etc.

Copy example.env to .env and set it up.

Migrate

heroku local:run python manage.py migrate

Running your development setup

In a first terminal to start redis: redis-server In second terminal to start the local dev environment: heroku local

In browser, go to http://127.0.0.1:5000/