ostoslista
v8.0.0
Published
Shopping list Web application
Downloads
425
Readme
Ostoslista

Simple shopping list Web application, in which a single shopping list can be shared among family members. Uses Varasto as storage, while UI has been implemented with React and Material UI. Authentication is provided by express-varasto-jwt-auth.
Requirements
- Node.js>=22
How to get it up and running
Clone this Git repository into somewhere, then proceed by installing dependencies and building static assets and other TypeScript'y stuff:
$ npm install
$ npm run buildOn a fresh install there are no accounts yet, so run the interactive setup script:
$ npm run onboardYou will be prompted for an admin username and password. The script can only be run while no users exist yet.
After that you can start the application with:
$ npm startWhich starts the backend HTTP server in port 3000. You can change the default
port with PORT environment variable.
Recommended for any real deployment:
| Variable | Default | Purpose |
| ---------------------- | ----------------------- | --------------------------------------------------- |
| JWT_SECRET | development placeholder | Secret used to sign authentication tokens |
| JWT_EXPIRES_IN | 30d | Token lifetime |
| OSTOSLISTA_DATA | ./data | Directory for Varasto JSON storage (list entries) |
| OSTOSLISTA_AUTH_DATA | (unset) | Optional separate directory for authentication data |
| PORT | 3000 | HTTP listen port |
By default, users and shopping list entries share OSTOSLISTA_DATA. Set
OSTOSLISTA_AUTH_DATA to store authentication data in a different directory.
Attributions
Icon by [Read] on freeicons.io
