Skip to content

piepworks/cassettenest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cassette Nest

codecov

A way for analog photographers to track their film use from box to binder.

cassettenest.com

Copyright © 2016-2024 Piepworks LLC. All rights reserved.

Local Setup

  1. Create a new a .env file based on the example.
  2. just bootstrap

Development

  • 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

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.

Deployment

Then set your secrets in one go:

fly secrets import < fly.env

Then you're ready to go live:

fly deploy --ha=false