Skip to content

Instantly share code, notes, and snippets.

@verdi327
Created May 13, 2019 13:19
Show Gist options
  • Save verdi327/4131f815ff3275e7897a7d988e72aa62 to your computer and use it in GitHub Desktop.
Save verdi327/4131f815ff3275e7897a7d988e72aa62 to your computer and use it in GitHub Desktop.
Thingful Client
Interesting how context was setup. A class was created that held all of the funtions and state updates. The render function returns the provider wrapper child elements.
App Layout
Login Page
Register Page
List Page
Show Page
Not Found (for all other routes)
Not entirely sure how private and public only routes work
Thingful Server
-BEGIN/COMMIT creates a single postgres transaction. If an error occurs, then all changes are rolled back.
-Serial is a shorthand syntax for an auto incrementing unique key in postgres
-Treeize takes joined data and turns it into a deeply nested object - in effect taking horizontally organized data and making it vertical.
Treeize is used within thingful service and serializes the return values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment