This project requires:
git clone
this repository and change into the resulting directory.python3 -m venv .cmdi
source .cmdi/bin/activate
pip install -r requirements.txt
createuser --password cmdi
createdb --owner cmdi cmdi
bunzip2 < scratch/cmdi.sql.bz2 | psql --set ON_ERROR_STOP=on -h localhost cmdi
.env-example
to .env
and fill in the appropriate credentials.Procfile-example
to Procfile
and make sure the appropriate section for your environment is uncommented.npm ci && npm run build:production
honcho start
(Django only) or npm run dev
(with live asset compilation and reloading)TODO.
Ultimately the Directory will be presented in multiple, translated languages.
19 March 2020: Flipped the switch on account creation in production and so the flow of definitive data has reversed, now it's from production to development.
Remote:
pg_dump -U cmdi -h localhost -f scratch/cmdi.sql --clean --if-exists --no-privileges --no-acl --no-owner cmdi && bzip2 -9 --force scratch/cmdi.sql
Local:
scp ubuntu@demo.directory.platform.coop:/home/ubuntu/coop-map-directory-index/scratch/cmdi.sql.bz2 scratch/
bunzip2 < scratch/cmdi.sql.bz2 | psql --set ON_ERROR_STOP=on -h localhost cmdi
January 2020: Data is being managed outside of this repository. A locally-installed development database is periodically dumped, transferred, and imported into the production server.
Local:
pg_dump -U cmdi -h localhost -f scratch/cmdi.sql --clean --if-exists cmdi && bzip2 -9 --force scratch/cmdi.sql
scp scratch/cmdi.sql.bz2 ubuntu@awshost:/home/ubuntu/coop-map-directory-index/scratch
Remote:
bunzip2 scratch/cmdi.sql.bz2
sudo su postgres
psql --set ON_ERROR_STOP=on -h localhost -U cmdi -W -f scratch/cmdi.sql cmdi
exit
honcho start
Limit commit messages to 72 characters, do not end with a full stop, prefix with one of:
build
ci
chore
docs
feat
fix
perf
refactor
revert
style
test
For more information, see here.
Use dev
branch as the basis for all pull requests/feature development.
Use the master
branch for "stable" code (merge from dev
periodically).
Modules we may need further down the road: