Turso + Koyeb
Deploy a JavaScript/Rust app using [Turso Cloud embedded replicas](/features/embedded-replicas) to [Koyeb](https://www.koyeb.com/).

Prerequisites
Before you start, make sure you:
- Install the Turso CLI
- Sign up or login to Turso Cloud
- Have a Koyeb account - create one
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.
Step 2
Fork one of the following embedded replica project from GitHub
See the full source code
See the full source code
Or, you can:
3. Add a new Koyeb app
-
Create a new app in the Koyeb control panel.
-
Select GitHub as the deployment option.
-
Import the GitHub project to Koyeb.
4. Fill in the environment variables on Koyeb’s deploy page

5. Deploy
Click the Deploy button at the bottom to deploy your web service.