Skip to content
/ ghm Public

Booking management for small guesthouses

Notifications You must be signed in to change notification settings

pkel/ghm

Repository files navigation

GHM

Guesthouse management using incr_dom (work in progress).

jq

Migration from old production api (single table) to new schema:

jq 'map({ id:.customer_id} + . + {bookings:[{customer:.customer_id, id:-1, created: .created, modified: .modified, data: .data.bookings[]}]} | del(.customer_id, .data.bookings)) | {customers: [.[] | del(.bookings)], bookings: [.[].bookings[]]}' < data/some.json > data/some.migrated.json

ToDo

  • Visually lock new booking and similar unsaveable views for unsaved new customer. Currently saving is silently deferred.
  • Refactor nav fields of component models into incremental argument. Use this for view. We achieve nav being read-only input for component. Mutable nav makes no sense.
  • BUG: URL customer/<cid>/booking/<bid> opens booking bid under customer cid. This moves booking bid to customer cid on next save.
  • SEC: Communicate with letter js via local storage. CORS should then avoid XSS.
  • SEC: PHP puts cleartext password to error log / client on database connection failure. Either wrap usage of password into try catch or avoid PHP altogether.

About

Booking management for small guesthouses

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published