A way for analog photographers to track their film use from box to binder.
Copyright © 2016-2024 Piepworks LLC. All rights reserved.
- Create a new a
.env
file based on the example. just bootstrap
- Get stylelint setup (only in your editor for now).
npm i
- Running Python tests
just pytest
- Run all the tests as fast as possible.
just coverage
- Run tests and generate a coverage report.
just playwright
- Run Playwright UI tests.
Once everything's set up, the next time you want to run it:
- Make sure the virtual environment is activated (usually happens automatically in VS Code).
source venv/bin/activate
- To run the Django server:
./manage.py runserver
- To run both the Django server and compile Tailwind on demand:
npm run start
- Update Workbox (More info on workbox-cli)
npx workbox-cli copyLibraries static/js/vendor/
- Update paths in
inventory/templates/sw.js
as needed.
Then set your secrets in one go:
fly secrets import < fly.env
Then you're ready to go live:
fly deploy --ha=false