Sign inSign up

fius/drinklist

By fius

•Updated about 4 years ago

FIUS Getränkeliste

Image
0

432

fius/drinklist repository overview

⁠Drinklist

License: MIT

Docker

The Drinklist is essentially a digital tally sheet which is intended for tracking coffee or beverage self service sales in offices or communities. It is intended to be used very quickly and with very minimal user interaction. This project also includes a management view to manage and track the inventory and the sales.

This was designed and build for the FIUS⁠ by its members.

⁠Prerequisites:

  • npm
  • sqlite3

⁠Install

First install all dependencies and setup the data folder with:

npm install
npm run setup-data-folder

Then start the node js server with:

npm start

or run it directly with:

node src/server.js

Lastly navigate to the Admin Page⁠ or the User Page⁠ and start using the system.

⁠Install with Docker

Container: neumantm/drinklist

Start with mapped config dir and forarded ports:

docker run -e TZ="Europe/Berlin" -p 8080:8080 -p 8081:8081 -p 8082:8082 -v ~/drinklistData:/app/data neumantm/drinklist

⁠Update from 1.0.0

Since version 1.1.0 contains breaking changes you need to migrate your data. There are two paths for this. Either open the data/history.db file with any sqlite programm of your choosing and run:

ALTER TABLE users ADD COLUMN hidden INTEGER NOT NULL DEFAULT 0;

Or go to the install directory with the data folder inside and run this command in a shell:

sqlite3 data/history.db "ALTER TABLE users ADD COLUMN hidden INTEGER NOT NULL DEFAULT 0;"

Additionally it is necessary to create the data/user-settings.json file with the following content:

{"imprint":true,"data-protection":true,"recently-purchased":true,"history":true,"money":true}

⁠Interfaces

NamePortDescription
API8080This is the api used to store and manage all informations
user page8081This is the page accessible for the users to mark there 'expenses'
admin page8082This is the page used by the administrators to add and track beverages and view the accounts

Tag summary

Content type

Image

Digest

Size

548.9 MB

Last updated

about 4 years ago

docker pull fius/drinklist