+ 1
How to create a website with different url for each user?
Hello guys, I've created a simple webpage using authentication on firebase (sign up and sign in), what I wanna know is how I can register with different links for example https://www.website.com/home/user/sn=abcdefgh I'll assign a url to every user with different serial number to register and once registered that profile must be linked to that URL I'm using firestore as database, if you have another idea how to do it or any advice thanks guys
8 Antworten
+ 2
Your focus of using a different url for each user is not necessary.
It's hard to explain in a few words.
I would therefore suggest The Net Ninja's Firebase Auth Tutorial Series:
https://youtube.com/playlist?list=PL4cUxeGkcC9jUPIes_B8vRjn1_GaplOPQ
Follow step by step to build a working boilerplate first, then edit to fit your own need.
0
I'm quite clueless in this regard, but why are you already assigning a user number BEFORE you have them register? Would it not make sense as save space for you personally to wait until after registration to then assign unique IDs?
0
Justice thanks for your response, it's because I'll give those url to every QR code, so every time someone scan that QR code it will be redirect to that specific url
0
Are you sure you just don't want one URL that every visitor can visit and then you can save space in your DB because you're not creating a unique ID for each visitor. Not every visitor will want to register and the bigger your DB gets, the slower your app, so save space as much as possible.
0
Justice Actually I'm not sure how it should work, I mean every user will have their own profile when registering, everyone's profile will have a url that url will be represented by a QR code so every time it is scanned it will redirect to that specific profile information, so every user must have a different url, would you give me any advice, thanks for your time
0
I'm not sure unfortunately, I'm just thinking from a backend angle in terms of your DB. It makes sense to have each user have their own URL, but that should really only be done until after the register, not just visiting.
You may have to find some sources through YouTube or Google on how to effectively handle user authentication.
0
Justice Yes, thanks appreciate your time. ^^
0
Gordon I'm gonna check it out, thanks for the info appreciate that.