Open truonghoangduy opened 2 years ago
Mobile app able to find the self-host backend. (Links, QR)
Nice with those diagram we could solve those (correct me if i wrong)
Requirements
@DangCao1999 @Zeroska @Kaigagi Checkout this solution we're having guys, we are solving 2 dot on top, and these dot bellow still not clear
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.
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.
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
Device Model: Device id with uuid generate default by firestore. Access key generate by package https://www.npmjs.com/package/shortid.
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.
HMW DESIGN AN ARCHITECTURE ALLOW USER SELFT-HOST OURS OPEN-SOURCE
Base on the discussion we're having ours (architecture)solution will enable user self-host ours open source architecture with an GCP
Requirements
=> After Mobile app successful find the backend self-host, and establish with backend device access key (device-id). The mobile app(device) will belong to the backend self-hosted (organization).
Img![image](https://user-images.githubusercontent.com/42218324/153740252-b866b164-26da-4226-a790-b88e91d7091e.jpeg)