GithubHelp home page GithubHelp logo

blarz / matomat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mojoaxel/matomat

5.0 2.0 2.0 274 KB

Simple terminal based billing system, written in Perl.

Home Page: http://k4cg.org/k4cg:matomat

Perl 84.72% Shell 4.86% C 2.09% JavaScript 8.33%

matomat's Introduction

DESCRIPTION:

The matomat is a mostly drunken coded perl script to manage the beverate billing at the K4CG (http://www.k4cg.org/).

REQUIREMENTS:

  • Perl
  • SQLite
  • festival (for the t2s feature)

Perl modules:

  • DBI
  • Config::Simple
  • Text::FIGlet
  • Digest::SHA
  • IO::Prompter (Version: 0.002000)
  • Term::ReadKey
  • Module::Load
  • IO::Select
  • IPC::Open3

Install missing modules using the following command

sudo perl -MCPAN -e "install MODULE_NAME"

INSTALL:

Create the matomat.db in /var/matomat/

You can simply use the install.sh script to create the DB and place the files.

Default user is admin with password matomat.

sqlite3 /var/matomat/matomat.db "CREATE TABLE user (userid INTEGER PRIMARY KEY, username TEXT UNIQUE, pw_hash TEXT, privs INT, credits INT);" sqlite3 /var/matomat/matomat.db "INSERT INTO user (username, pw_hash, pw_change, rfid_id, privs, credits) VALUES ('admin','$xlx37Vm8heXo192iixKl89vB6ZkFygnWBctLHy4vlSjXoAkfo4SDsGefEvocbjhBHmJdRVJXj53aoqZpjfq1ESq0IsXGimKveaXZu2ak9PzYVC6Iawz3wP8xnqnAYC1Uz$WLHrV6B/9Cpa0jrfEv1wtLz4AoifIWEXlcFeOHNnbmLW8K/qUhF//odu9T44RwZ7zeJSeuDA2CPwSZ12phcu5g',0,1000,1,0);" sqlite3 /var/matomat/matomat.db "CREATE TABLE drinks (drinkid INTEGER PRIMARY KEY, name TEXT UNIQUE, price INT, active INT,fixed INT,t2s TEXT);" sqlite3 /var/matomat/matomat.db "CREATE TABLE plugins (name TXT UNIQUE, filename TXT UNIQUE, active INT);"

Login with the admin user, change the password, add some drinks and users.

AUTHORS:

Nikolas Sotiriu (lofi) [email protected] http://sotiriu.de

Simon (blarz) [email protected]

LICENSE:

"THE BEER-WARE LICENSE" (Revision 42): lofi and blarz wrote this code. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy us a beer in return.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.