A management site for the Claremont MakerSpace https://manage.claremontmakerspace.org/
Go to file
Renovate Bot 4196687950
Some checks failed
Ruff / ruff (push) Successful in 46s
Ruff / ruff (pull_request) Successful in 1m17s
Test / test (pull_request) Failing after 10m54s
Test / test (push) Failing after 12m19s
chore(deps): update mariadb docker tag to v11
2024-08-17 04:46:10 +00:00
.gitea/workflows chore(deps): update mariadb docker tag to v11 2024-08-17 04:46:10 +00:00
cmsmanage CI: Build Vite assets for test workflow 2024-08-16 00:22:32 -04:00
dashboard Automatically detect .entry.ts files as Vite entry points 2024-07-24 01:50:34 -04:00
doorcontrol doorcontrol: Simplify querystring handling using new querystring tag 2024-08-17 00:26:22 -04:00
js membershipworks: Fix missing bootstrap CSS in invoice PDFs 2024-07-24 21:53:44 -04:00
membershipworks membershipworks: Add basic tests for validity of Event financial queries 2024-08-15 23:56:03 -04:00
paperwork Apply Ruff's flake8-type-checking (TCH) rules 2024-08-09 01:47:32 -04:00
rentals Improve various admin pages performance using select/prefetch related 2024-08-09 01:47:32 -04:00
reservations Apply Ruff's flake8-type-checking (TCH) rules 2024-08-09 01:47:32 -04:00
static Add/apply prettier 2024-07-23 00:45:27 -04:00
tasks Apply Ruff's flake8-no-pep420 (INP) rules 2024-08-09 01:47:32 -04:00
templates Automatically detect .entry.ts files as Vite entry points 2024-07-24 01:50:34 -04:00
.gitignore
.pre-commit-config.yaml Bump dependencies 2024-08-16 17:56:57 -04:00
.prettierignore Add/apply prettier 2024-07-23 00:45:27 -04:00
.prettierrc Add/apply prettier 2024-07-23 00:45:27 -04:00
manage.py
package.json Bump dependencies 2024-08-16 17:56:57 -04:00
pdm.lock Bump dependencies 2024-08-16 17:56:57 -04:00
pdm.toml
pnpm-lock.yaml Bump dependencies 2024-08-16 17:56:57 -04:00
pyproject.toml Bump dependencies 2024-08-16 17:56:57 -04:00
README.md
renovate.json Add/apply prettier 2024-07-23 00:45:27 -04:00
tsconfig.json
vite.config.js membershipworks: Fix missing bootstrap CSS in invoice PDFs 2024-07-24 21:53:44 -04:00

CMS Management

A management site for the Claremont MakerSpace

Development

This assumes a relatively recent Linux system. It should work fine on MacOS, and might work on Windows.

Python Setup

  1. Get Python 3.11 and PDM
  2. Run pdm install
  3. Create settings.dev.env with config as required by ./cmsmanage/settings.py
  4. Run pdm run ./manage.py migrate to create database tables
    • At present, this will require an annoying amount of manual fiddling to create the JSON_TABLE views (due to MariaDB bugs) unless you run this as the root user for the database.
  5. (Optional) If you have access to the production server, you can use real data:
    1. pdm run ./manage.py dumpdata -o whatever.json (on the server)
    2. pdm run ./manage.py loaddata whatever.json (on your machine)
  6. Run pdm run ./manage.py createsuperuser to make a user

JavaScript setup

  1. Install NodeJS and pnpm
  2. Run pnpm install

Running the dev server

  • If you don't intend to work on the JavaScript code:
    • pnpm run build to build the JS/CSS
    • pdm run ./manage.py runserver to start the Django server
  • Otherwise:
    • pnpm run dev to start the Vite dev server
    • DJANGO_VITE_DEV_MODE=true pdm run ./manage.py runserver to start the Django server