stqism / workforla

Website to help guide LA residents who want to work for the City of LA.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Website to help guide LA residents who want to work for the City of LA.


Languages

Language:Python 37.2%Language:HTML 32.7%Language:CSS 29.2%Language:Ruby 0.5%Language:JavaScript 0.2%Language:Shell 0.1%