Prerequisites

Before you start, make sure you:

1

Retrieve database credentials

You will need an existing database to continue. If you don’t have one, create one.

Get the database URL:

turso db show --url <database-name>

Get the database authentication token:

turso db tokens create <database-name>

Assign credentials to the environment variables inside .env.

TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=
You will want to store these as environment variables.
2

Get application code

Fork the following embedded replica project from GitHub locally:

My Expenses Tracker - (Elysia + Bun)

See the full source code

3

Create a web service

Create a new Render Web Service by clicking on the “New Web Service” button on the Web Services card inside you Render dashboard.

4

Connect to Git repository

  1. Select “build and deploy from a Git repository” and proceed to the next page.

  2. Click on “Connect” for your target project repository

5

Set project's environment variables

On the web service configuration page, under “Advanced” add a secret file and fill it in with your database secret credentials:

6

Deploy project

Scroll to the bottom of the web service configuration page and click on “Create Web Service”.