An administration tool for Software Carpentry bootcamps.
A dummy database is stored (as SQL) in roster.sql
,
and queries that we commonly run against it are stored in Makefile
.
(Run make
on its own in the root directory to see a list of targets.)
We would eventually like this tool to be able to display all the things the Makefile
can,
and also allow:
- Manual entry of individual records in all of the database tables.
- Batch entry of people and tasks from CSV files in the style of the Add Multiple Users plugin for WordPress.
- Install SQLAlchemy, Flask, and Nose.
python app.py
.- Go to http://127.0.0.1:5000/.
- Install pip and virtualenv.
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py
- Go to http://127.0.0.1:5000/.
Just run nosetests
from the root of the repository.
The following environment variables can be set to change the behavior of the app.
-
SWCARPENTRY_ADMIN_PATH
is a path to a directory containingroster.sql
, and in whichroster.db
will be created if it doesn't already exist. By default, it's the same as the root directory of the repository, in which case test data will be used. -
FLASK_CONFIG
is the base server configuration to use. It can bedefault
,testing
, orproduction
; by default, it'sdefault
.