Giter VIP home page Giter VIP logo

strichliste's Issues

cannot call method 'toString' of undefined

TypeError: Cannot call method 'toString' of undefined
    at ServerResponse.writeHead (http.js:1180:45)
    at ServerResponse._implicitHeader (http.js:1131:8)
    at ServerResponse.OutgoingMessage.end (http.js:920:10)
    at ServerResponse.send (/home/schinken/strichliste/strichliste/node_modules/express/lib/response.js:189:8)
    at /home/schinken/strichliste/strichliste/lib/bootstrap.js:32:17
    at Layer.handle_error (/home/schinken/strichliste/strichliste/node_modules/express/lib/router/layer.js:52:5)
    at trim_prefix (/home/schinken/strichliste/strichliste/node_modules/express/lib/router/index.js:261:13)
    at /home/schinken/strichliste/strichliste/node_modules/express/lib/router/index.js:230:9
    at Function.proto.process_params (/home/schinken/strichliste/strichliste/node_modules/express/lib/router/index.js:305:12)
    at /home/schinken/strichliste/strichliste/node_modules/express/lib/router/index.js:221:12

Configurable database backend

Maybe it would be nice to have other database backends and introduce a query builder like squel.js with this step.

The reason is: I think it would be nice that one can use mysql if there's already a running instance, because multiple applications an query the database - not just one using the sqlite database

Pin protection

Make it possible to protect a user by pin/password/callItWhatYouWant

mqtt events

MQTT events for transactions. Make events configurable

mqtt: {
    host: 'mqtt.core.bckspc.de',
    port: 1883,
    topics: {
        transactionCreated: 'strichliste/transaction/create',
        userCreated: 'strichliste/user/create'
    }
}

something like dat.

transaction boundary

I'd propose 150€+ and 20€- (14 Club Mate à 1,50€ on credit, should be enough IMO).

Limit a single transaction. these could be the defaults as proposed by else in #21

Add product database

Add possibility to store EAN Codes, Product Names and Price

POST /user/:userId/transaction should also support { eanCode: "....." }

Add e-mail address to user

Add e-mail address to user table and provide a migrate script which is automatically executed if it's missing for the specific version.

Add e-mail address to api response, too

Rename to strichliste-api

Rename to strichliste-api, so that we can later create a strichliste package that contains the api and a ready-to-use build of the frontend.

@schinken thoughts on this?

debug mqtt binding

after enabling the mqtt binding, the server does not start anymore (hangs?).

Add API call to query transactions per user per day

We want to implement a script which sends a mail per user with all transactions of the past day. Unfortunately there's no API call to filter the transactions per date, so I'd have to query all transactions and filter the result in the script.

An API call which returns a structure with all users and their transactions of the date specified would be very handy to simplify this. Users with no transactions should be hidden in this result.

Of course the local timezone should be considered.

Extend /settings endpoint

Please return not just the accound boundaries, but also the transaction boundaries. Needed by strichliste-web for handling custom transactions

datetime format is UTC

Currently I retrieve dates in UTC, which is not a problem but it's weird if you do an transaction at 20:00 and the displayed time is 18:00.

I'm not sure where the solution should be: frontend or backend? I think both. We need a different output date format with time zone to handle it correctly in the frontend

Server crash on missing field in POST /user/<userId>/transaction

TypeError: Cannot call method 'toString' of undefined
    at ServerResponse.writeHead (http.js:1178:45)
    at ServerResponse._implicitHeader (http.js:1129:8)
    at ServerResponse.OutgoingMessage.end (http.js:918:10)
    at ServerResponse.send (/opt/strichliste/node_modules/express/lib/response.js:189:8)
    at ServerResponse.json (/opt/strichliste/node_modules/express/lib/response.js:233:15)
    at ServerResponse.send (/opt/strichliste/node_modules/express/lib/response.js:132:21)
    at errorHandler (/opt/strichliste/lib/result/errorHandler.js:4:10)
    at Layer.handle_error (/opt/strichliste/node_modules/express/lib/router/layer.js:52:5)
    at trim_prefix (/opt/strichliste/node_modules/express/lib/router/index.js:261:13)
    at /opt/strichliste/node_modules/express/lib/router/index.js:230:9

Trying to reproduce. POC coming

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.