A #crosshack project that makes it easy for fellows to share the things they teach others.
Idea: A framework for instructors to share their workshop curricula, assets, slides, handouts, etc. Makes it easier for groups to reproduce presentations.
Initial use case: Code for America fellows undergo intense training in January before they head to their host cities in February. While in their cities in Feb, Code for America fellows have an opportunity to give presentations. Skill Camp is a tool to allow fellows to more easily give presentations by providing documentation from the original presenter.
Skillcamp is a Python Flask application.
-
Get started by preparing your Python environment and installing dependencies from
requirements.txt
. -
Next, prepare a local PostgreSQL database.
-
Skillcamp uses the environment variable
DATABASE_URL
to connect to PostgreSQL; it will look something like this:postgres://username:password@hostname:5432/databasename
When testing, run the application like this:
$ DATABASE_URL=postgres://username:password@hostname:5432/databasename python app.py
=========
- setup python/pip/virtualenv
- setup postgres
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install -r requirements.txt
maya=# CREATE USER skillcamp PASSWORD 'skillcamp'; CREATE ROLE maya=# CREATE DATABASE skillcamp OWNER=skillcamp;
- source virtualenv
- DATABASE_URL
- python app.py
- source ENV/bin/activate
- export DATABASE_URL=postgres://skillcamp:skillcamp@localhost/skillcamp
- python app.py