A website for helping people find and apply for work in the City of Los Angeles. Built by the folks at Hack For LA.
This is a Django project deployed on Heroku.
The development environment is a work in progress, but here are the current steps.
Clone:
git clone git@github.com:alexchao/workforla.git
Setup Python virtualenv (install Python 3.x if you haven't already):
cd workforla/
python -m venv env
Install dependencies:
env/bin/pip install -r requirements.txt
Spin up database (requires Docker, but you could also just use a local install of MySQL):
docker-compose up
env/bin/python manage.py migrate
Preload some data:
env/bin/python manage.py loaddata categories.json
env/bin/python manage.py loaddata jobs.json
Start server:
heroku local web
If you get a gunicorn
-related error starting up the server, make sure you're
in your virtualenv
context by running the following first:
source env/bin/activate
Run tests the standard Django way:
env/bin/python manage.py test
If you get a ValueError: Missing staticfiles manifest entry for [some asset]
error, run the following command then try again:
env/bin/python manage.py collectstatic