How to handle template seeding
six
HOBBYOP

a year ago

How do templates handle initial user creation when the user needs to go through a login flow to input their details? My application generates a link when creating a user that the user uses to login. I want to create that user when the template is created, but I'm not sure how to handle that - would it be ideal to create a service that's job is to create the user and output the login URL, that the template user deletes after they've registered?

15 Replies

six
HOBBYOP

a year ago

m/a


brody
EMPLOYEE

a year ago

is this your code or someone elses code?


six
HOBBYOP

a year ago

someone else


brody
EMPLOYEE

a year ago

then you would need to conform to however they have designed the user creation flow


six
HOBBYOP

a year ago

it generates a URL to register the user - so i can either bundle it in with the main service or have a dedicated service to create the user, output the login, and ask the user to delete the service?


six
HOBBYOP

a year ago

would be nice if we could label things in templates


brody
EMPLOYEE

a year ago

You can name services though?


brody
EMPLOYEE

a year ago

I'm missing a lot of context, but im sure you will end up choosing the best option!


six
HOBBYOP

a year ago

is it possible to get the postgres data tab on a custom image?


brody
EMPLOYEE

a year ago

that's detected if the image source contains the word postgres


six
HOBBYOP

a year ago

👍 currently using a repo but ill move it to an image to get that


brody
EMPLOYEE

a year ago

it may work with a repo too, not sure exactly


six
HOBBYOP

a year ago

im guessing the repo has to include the text postgres, so i just ended up using github actions


six
HOBBYOP

a year ago

i got it working successfully so ill go ahead with the template :)


brody
EMPLOYEE

a year ago

awesome!


Loading...