Go to file
Dariusz Niemczyk 142e38ad95
fix: bump django version
2024-01-12 18:57:02 +01:00
.devcontainer vscode: Add .devcontainer support 2023-12-03 19:54:29 +01:00
auth Revert "auth: do not automatically staff new members" 2023-08-25 21:51:09 +02:00
spejstore fix: use proper uri rewrites 2024-01-12 18:56:27 +01:00
static errors: add cute error pages 2023-08-25 21:04:43 +02:00
storage fix: use proper uri rewrites 2024-01-12 18:56:27 +01:00
templates fix: use static template 2024-01-12 18:56:08 +01:00
.dockerignore Add overrides to docker-ignore 2023-07-14 22:38:48 +02:00
.gitignore Add .env to .gitignore 2023-07-14 16:28:07 +02:00
Dockerfile Properly collectstatic on docker build 2023-07-17 23:09:11 +02:00
README.md improve readme for docker-compose newbs 2023-08-21 21:38:13 +02:00
docker-compose.dev-override.yml auth: cleanup 2023-09-09 19:26:36 +02:00
docker-compose.prod-override.yml docker-compose: build locally 2023-08-18 13:00:53 +02:00
docker-compose.yml Fix wrong psql healthcheck user 2023-11-06 20:50:00 +01:00
manage.py Initial commit 2016-09-30 00:04:43 +02:00
requirements.txt fix: bump django version 2024-01-12 18:57:02 +01:00
spejstore-dev.env allow localhost in dev 2020-05-12 20:27:08 +02:00

README.md

spejstore

Because there is not enough general inventory software invented here yet. Please use Python3, for the love of $deity...

Usage

Quick start

  1. Run:
    ln -s docker-compose.dev-override.yml docker-compose.override.yml
    docker-compose up --build
    
  2. Run docker-compose run --rm web python manage.py createsuperuser -- now you can dev authenticate w/o SSO

Build & run

docker-compose up --build

# if you need to reset built static files and/or postgres database:
docker-compose up --build --renew-anon-volumes

Troubleshooting

New docs (WIP):

Spejstore is a simple inventory system made for Warsaw Hackerspace purposes. Includes some features very specific to hswaw requirements, which are:

  • Label printing and label-system support (via django-rest-api api views and SPEJSTORE_LABEL_API env variable), using the spejstore-labelmaker software
  • Publically viewing all items and requiring users to sign in view oauth to manage inventory via django-admin
  • Authorizing label printing via local network only, see SPEJSTORE_LAN_ALLOWED_ADDRESS_SPACE env variable

Currently inventory is deployed under inventory.waw.hackerspace.pl, with a Beyondspace NGINX configuration, which allows the inventory to be accessible from outside of the Warsaw Hackerspace network with a necessary oauth authorization, but does not allow printing of labels without physically being in the local network of HSWAW.