Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 1.37 KB

README.md

File metadata and controls

73 lines (49 loc) · 1.37 KB

workfor.la

A website for helping people find and apply for work in the City of Los Angeles. Built by the folks at Hack For LA.

Overview

This is a Django project deployed on Heroku.

Setup

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

Tests

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