- Node version 20
- Turso account
- Create a Turso Account: Sign up and create a new account on Turso if you haven't done so already.
- Obtain Database URL and Auth Token:
- Navigate to the Turso dashboard.
- Set up a new database instance and retrieve the database URL and the authorization token.
Create a .env
file in the root directory of your cloned repository. Add the following lines to the file:
TURSO_CONNECTION_URL=""
TURSO_AUTH_TOKEN=""
Add your Turso URL and Auth token here.
Run the following command in your terminal to push the initial schema to your Turso database:
npm run db:push
This step ensures that your local development environment is synchronized with your database schema, setting the stage for development.
yarn install
yarn dev