Giter VIP home page Giter VIP logo

core's People

Contributors

pwesterdale avatar

Watchers

 avatar  avatar  avatar

core's Issues

Availability - Returning table/timeslot Matrix

So the current state of this:

We have time slots
We have available tables

My plan is to end up with something akin to this. (psuedocode)

[{
  8:45 : {tblNum : bookingId || false} /* for each table */
}]

This should make an easily queryable hashmap.
To generate that hashmap I'm envisaging a promise that can fail quickly if it knows all tables that would be available for this booking request are already filled.
I'm concerned about performance here as I think this could take a while...

Sessions

A user can have many sessions.
There are 3 types of session.

application
Only granted when the user is using the reservat application, raised perms.
api
Long lived tokens for users to access the API. controlled permissions.
customer
Basic perms to be able to make bookings and communicate with the set restaurant through websockets.

The only thing stored user side will be a sessionID in cookies or local storage.
Cookies will have a set expiration date, but the session will also have an expiration stored inside Redis.

Table Priorities

Tables should have an allocation priority - so the best tables are available first and lesser used tables can be allocated as a last resort.

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.