Code Monkey home page Code Monkey logo

airboardgame-back's People

Contributors

jrmi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

airboardgame-back's Issues

Add CRUD view hooks

To allow easy box behaviour customization, we can use declare hooks at box creation to be able to modify input or output data.

Some use cases:

  • Allow only owner to modify a resource without having to create spc for each verb (i.e. update, delete)
  • filter list query only for public/published or owned records
  • Delete expired entries on request

Add security when registering frontend with encryption/signing

See:

Requirements:

  • Easy to use in dev mode
  • Easy to use in pipeline
  • Allow multiple hostname live on same siteId (ex: For deploy preview for instance)
  • Allow same hostname live on multiple siteId (Try on dev then try on prod or have multiple server)

Steps:

  1. We register the site via an API and get an api key
  2. We crypt "something" with the key to pass a challenge and put in setup ? Or we crypt the setup.py file with the secret key ?
  3. When we visit the site, since the browser call an endpoint, the server try to access the referer (or whatever specified in query) and load the setup from it ?

Add personnal boxes

Private box are box only for authenticated user.
To add private box we need:

  • To create a store wrapper with that API:
    • constructor(store) => keep the store internally for further references
    • getStore(user) => return an object with original store API but box id is rewriten if the box is "private" (we can rewrite box id like that _${userID}_${boxId}) to access transparently to user specific store. boxId starting with _ are internal only.
  • Allow to create private store by using the already defined personnal box options
  • To use that wrapper everywhere a store is used:
    • In CRUD views
    • In execute middleware context

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.