Ticket system combines management of several concepts, such as work requests, job logs, and service tickets.
- Python 3
- Django 2
- PostgreSQL: Full-text search with tsvector? Yes please.
- Bootstrap 4: Longest alpha in history
- Gulp.js: Webpack seems like overkill, currently.
- Tox: Pull all the test tools together
- Pytest: Writing tests with a simple
assert
is the life - Coverage.py: HTML formatted code coverage reports
mkvirtualenv --python=`which python3` cujo
- Create new python3 venv, for when homebrew wrecks yourspip install --editable .[tests]
- Install required componentsnpm install
- Install requirements from project.jsongulp watch
- Build and auto-reload changes to your scss & js./manage.py makemigrations
- Prepare migrations./manage.py migrate
- Run migrations (needs all db privs for this, not just I.S.U.D)tox
- Run test suite- View coverage reports at:
cujo/htmlcov/index.html
To choose between dev/stage/prod.py settings append this to your env file, probably at /<venvs>/cujo/bin/postactivate
:
export DJANGO_SETTINGS_MODULE="cujo.settings.dev"
To keep your usernames/passwords out of git rename secrets.json.example
to secrets.json
in the root project folder.
./manage.py runserver
- Run Django development serverdjango-admin startapp module_name
- Create file layout for a new Django modulepip list -o
- List outdated packagesnpm outdated
- Find your old garbage
MIT (see LICENSE)