Design is to be found here.
See issues.
We are using Turso for the db with Drizzle (ORM). The first thing we have to do is make sure we have Turso installed in our system, so please check installation guide. Then the steps are the following:
turso auth signup --> login
turso db create <<nameofdb>> --> create a new db close to your location
turso db show <<nameofdb>> --> gives you info about the db
In my case I called my db collabender-dev-db
in local environment.
We need to run now the following command in order to get the authentication token.
turso db tokens create <<nameofdb>>
We will store this info in our .env
like this:
VITE_TURSO_CONNECTION_URL=libsql... (you will find this one in the Turso settings of your db)
VITE_TURSO_AUTH_TOKEN=<<generatedcode>>
```
You can after that generate a migration to check how it looks like and then run the migration
npx drizzle-kit generate
npx drizzle-kit migrate