reservat / core Goto Github PK
View Code? Open in Web Editor NEWEarly phases of testing a core system & API
Early phases of testing a core system & API
Config is there to do the work.
L22 AvailabilityMatrix.js - Use the config on restaurant.
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...
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.
As per the user implementation.
Reservat core class should pass down singleton wrapper classes for ElasticSearch/MySQL/Redis.
Tables should have an allocation priority - so the best tables are available first and lesser used tables can be allocated as a last resort.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.