Git Product home page Git Product logo

Comments (7)

DangCao1999 avatar DangCao1999 commented on June 9, 2024 1

Sum up

image

Device Model:
Device id with uuid generate default by firestore.
Access key generate by package https://www.npmjs.com/package/shortid.

from gateway.

truonghoangduy avatar truonghoangduy commented on June 9, 2024 1

Sum up

Device Model:

Device id with uuid generate default by firestore.

Access key generate by package https://www.npmjs.com/package/shortid.

Okiee @Kaigagi you take note and add those library in package log and make those to our backend dependency.

from gateway.

DangCao1999 avatar DangCao1999 commented on June 9, 2024

Mobile app able to find the self-host backend. (Links, QR)

Sequence diagram

from gateway.

truonghoangduy avatar truonghoangduy commented on June 9, 2024

Mobile app able to find the self-host backend. (Links, QR)

Sequence diagram

Nice with those diagram we could solve those (correct me if i wrong)

Requirements

  • Mobile app able to find the self-host backend. (Links, QR)
  • Backend are able to located the Mobile app wanted to connect to it.
  • Backend provide device access key (device-id) for mobile app.
  • (One device-id per mobile app)
  • Open-source(web, backend) in the picture down bellow are able to be provision in their gcp account. via terraform

from gateway.

truonghoangduy avatar truonghoangduy commented on June 9, 2024

@DangCao1999 @Zeroska @Kaigagi
Checkout this solution we're having guys, we are solving 2 dot on top, and these dot bellow still not clear

  • Backend provide device access key (device-id) for mobile app.
  • (One device-id per mobile app)

I have a write down in #12, in there it has a section say "How device claim work" I think it could be resolve those dot.

from gateway.

Kaigagi avatar Kaigagi commented on June 9, 2024

I suggest using a node package called keygenerator ( here is the reference: https://www.npmjs.com/package/keygenerator ) to generate a key. Then we can check whether or not it is unique later by using some comparison.

Or we just use numbers to organize it ? - It easier to compare.

from gateway.

truonghoangduy avatar truonghoangduy commented on June 9, 2024

I suggest using a node package called keygenerator ( here is the reference: https://www.npmjs.com/package/keygenerator ) to generate a key. Then we can check whether or not it is unique later by using some comparison.

Or we just use numbers to organize it ? - It easier to compare.

"some comparison" you mean like we has to query the db for it right. Yes we could use that package for generate key and do comparison. Recommend this lib over your https://www.npmjs.com/package/shortid. Or we could use auto-generated id by database

from gateway.

Related Issues (20)

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.