-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB is not connected #1
Comments
@olsn yes, you're right the DB is not connected yet. It's on my to-do list. There are some ways to create a backend service to connect Svelte to the database. I think an easy way is to use Hasura so the DB connection from Svelte is pretty straightforward with Apollo Graphql. (There is also a nice console in Hasura to test Graphql queries & check the Postgres database) I've worked on the Hasura setup but it's not ready yet. The docker setup with Hasura is working. I just need to fix an issue related to Apollo (getting Once the demo todo app is working, I think I'll create a blog post for it. Other options to connect to the DB (I haven't tested them):
Update 08.07.2021:
I've pushed my current work into branch |
@olsn OK, I've made some progress in the branch backend-graphql. Todo app is working in dev mode and the build is also working. There where some issues with After removing Todos
|
OK, I've worked a bit on this (see There are also two blog posts to the changes. You can find the links in this Tweet |
Maybe I'm overlooking something, but it seems your DB is not really connected in the Svelte-App.
That's actually the most difficult part (WITHOUT hardcoding the credentials!) - do you have a solution for that already?
The text was updated successfully, but these errors were encountered: