Name: ocdaction
Owner: Mental Health GitHub Group
Description: OCD Action App - A collaborative, youthled project aiming to make use of digital technology to provide mental health support to children & adolescents suffering with anxiety.
Forked from: womenhackfornonprofits/ocdaction
Created: 2017-10-26 06:17:24.0
Updated: 2018-05-21 16:32:21.0
Pushed: 2018-05-21 16:32:19.0
Homepage: http://staging-ocdaction.herokuapp.com/
Size: 1517
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A collaborative, youthled project aiming to make use of digital technology to provide mental health support to children & adolescents suffering with anxiety.
Install virtualenv:
Install virtualenvwrapper: `sudo pip install virtualenvwrapper
`
If you are on OS X El Capitan, you might get the following error:
stalling six-1.4.1:
Exception:
Traceback (most recent call last):
...
OSError: [Errno 1] Operation not permitted: '/var/folders/7x/h9sy5ff95bl45569k5km9g5m0000gn/T/pip-aWCOxi-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
If that happens, re-run the command with the flag --ignore-installed six
Source the virtualenvwrapper
:
TE**: To help do this automatically on every new shell you open add the line above to your `.bash_profile` or `.bashrc`
Create a new env for the project:
Get the code:
Go inside the ocdaction
directory:
Activate the virtual enviroment:
s will now ensure anything you install is within this enviroment.
You will need to have Postgres installed and up and running. You can onstall it via:
`brew install postgresql
`Make sure the Postgres Server is up and running:
brew services start postgresql
Install the requirements:
s will get all the dependencies.
Create a database locally for the project to run:
Go inside frontend folder:
Install all the dependencies:
s will get all the dependencies
Go inside the django app directory:
Run django server:
The project is now running on http://127.0.0.1:8000/
, go to that address in your browser.
You may see a message that you have unapplied migrations, when you see this simply run the command below which will create any tables and fields in the database:
To run tests, run `pytest
` from within the app directory. This will run all tests within that directory and subfolders.
`frontend
` folderocdaction/templates
grunt watch
in the frontend folder to build, watch and copy all the required files automatically into the Django static folder.wget -qO- https://toolbelt.heroku.com/install.sh | sh
heroku login
heroku git:remote -a staging-ocdaction
git push heroku master
make sure you have commited all the changes before running this and the git status
is clean.Please follow a few guidelines in order to contribute to the project set out in the Contributing file