Go to file
radex 8ddc4da3b6 Merge pull request 'fix: properly create svgs static paths' (#2) from fix/static-svgs into master
Reviewed-on: https://code.hackerspace.pl/hswaw/spejstore/pulls/2
2024-01-31 13:24:05 +00:00
.devcontainer cleanup: docker-compose and .env.example 2024-01-19 19:22:36 +01:00
auth Revert "auth: do not automatically staff new members" 2023-08-25 21:51:09 +02:00
spejstore fix: server static on s3 correctly 2024-01-19 22:31:39 +01:00
static errors: add cute error pages 2023-08-25 21:04:43 +02:00
storage fix printing 2024-01-31 09:25:15 +01:00
templates fix: properly create svgs static paths 2024-01-31 14:22:17 +01:00
.dockerignore fix: properly use threads and workers 2024-01-14 13:53:39 +01:00
.env.example cleanup: docker-compose and .env.example 2024-01-19 19:22:36 +01:00
.gitignore Add .env to .gitignore 2023-07-14 16:28:07 +02:00
Dockerfile Add S3 storage configuration 2024-01-14 23:56:26 +01:00
README.md improve readme for docker-compose newbs 2023-08-21 21:38:13 +02:00
docker-compose.yml Add S3 storage configuration 2024-01-14 23:56:26 +01:00
manage.py Initial commit 2016-09-30 00:04:43 +02:00
requirements.txt Add S3 storage configuration 2024-01-14 23:56:26 +01:00
spejstore-dev.env fix: weird docker compose hacks 2024-01-13 23:30:50 +01: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.