How to create a website with different url for each user? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

28th Jun 2022, 12:21 AM
PolChe
8 Answers
+ 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.
28th Jun 2022, 5:26 AM
Gordon
Gordon - avatar
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?
28th Jun 2022, 1:59 AM
Justice
Justice - avatar
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
28th Jun 2022, 2:09 AM
PolChe
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.
28th Jun 2022, 2:11 AM
Justice
Justice - avatar
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
28th Jun 2022, 2:16 AM
PolChe
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.
28th Jun 2022, 2:18 AM
Justice
Justice - avatar
0
Justice Yes, thanks appreciate your time. ^^
28th Jun 2022, 2:22 AM
PolChe
0
Gordon I'm gonna check it out, thanks for the info appreciate that.
29th Jun 2022, 4:11 AM
PolChe