Closed digitalit closed 9 months ago
Hi Peter,
Pardon the delay, just saw your message a few minutes ago. Are you trying to run your postgres DB locally and are you trying to use it with drizzle?
Also, just a heads-up I started a new job this week, so I might not be able to look into this in depth till later this week as I settle in
And thank you, have a nice day as well !
Hi Edward,
Your answer were blazing fast so no need to apologize.
Yes, i intend to use drizzle and a local PG for dev and maybe Vercel with PG for production.
I found this repo: https://github.com/ak4zh/slide/tree/main that works fine but there are som differences from yours regarding schema and some other stuff.
I just want to be sure i start building with Lucia "the right way".
Congrats to the new job.
EDIT*
I just got it working: https://github.com/digitalit/sveltekit-lucia-auth-v3-example
I like your way as it's reflects the Lucia docs more in terms of schema.
Anyway take your time and please let me know what you think of my migration to PG.
Have a nice day.
Thank you
And right on for getting it working! I'll take a look later today
Have a nice day
Your migration to PG is good. I was able to get your repo working with PG locally. And I like the naming of the folder "migrations" since it's a lot more clear of its purpose, I'm going to be doing the same moving forward
The use of using a env for the DATABASE_URL
and the error handling that you have for it in drizzle.config.ts
is also a nice touch. I was too lazy to add it to mine 😅
Also note that the --config
option for the drizzel-kit
commands is not required if the drizzle config file is named drizzle.config.ts
as this is the default file that drizzle read. But it's good that you specified that option, in case the drizzle team ever change the default name for the config file
Please tell me if you want to continue this conversation and if so, should we continue here in a "issue"?
I want to give you some background of my situation. I used to divide a project into 3 different apps:
api.customers.se - this was an API using the framework AdonisJS with purpose to only handle data, mails and media.
admin.customer.se - this was the admin for my customer using the framework Quasar in SSR mode with purpose to handle all in house content and of course the content of the public customer site.
www.customer.se - this was the public site for for my customers visitors using the framework Quasar in SSR mode
PROS:
CONS:
As you understand i'm totally new to Sveltekit/Svelte so forgive me for asking stupid questions.
throw redirect(303, DASHBOARD_ROUTE);
in hooks.server.ts to be able to add like /routes/dashboard/todosHave a nice day
Hi,
I'm trying to use postgres instead of sqlite but i can't figure it out.
Any tip?
Have a nice day