# Turso + Linode by Akamai

> Deploy a JavaScript/Rust app using [Turso Cloud embedded replicas](/features/embedded-replicas) to [Akamai](https://www.linode.com/).
> Canonical HTML: https://tursodb.cn/docs/features/embedded-replicas/with-akamai/
> Upstream Source (MIT): https://docs.turso.tech/features/embedded-replicas/with-akamai
> Language: en

---
![Akamai banner](/images/turso-docs/platforms/akamai-banner.png)

## Prerequisites

Before you start, make sure you:

* [Install the Turso CLI](/docs/cli/installation/)
* [Sign up or login to Turso Cloud](/docs/cli/authentication/#signup)
* Have an Akamai account - [create one](https://login.linode.com/signup)

**1. Retrieve database credentials**

You will need an existing database to continue. If you don't have one, [create one](/docs/quickstart/).

Get the database URL:

```bash
turso db show --url <database-name>
```

Get the database authentication token:

```bash
turso db tokens create <database-name>
```

Assign credentials to the environment variables inside `.env`.

```bash
TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=
```

<div class="doc-callout doc-callout-info"><div class="doc-callout-title">NOTE</div><div class="doc-callout-body">

You will want to store these as environment variables.

</div></div>


**Step 2**

Fork one of the following embedded replica projects from GitHub

<div class="doc-cards">
<a class="doc-card" href="https://github.com/tursodatabase/embedded-replicas-with-js" target="_blank" rel="noopener noreferrer"><div class="doc-card-title"><span>My Expenses Tracker - (Elysia + Bun)</span><span class="doc-card-arrow" aria-hidden="true">↗</span></div><p class="doc-card-desc">See the full source code</p></a>
<a class="doc-card" href="https://github.com/tursodatabase/embedded-replicas-with-rust" target="_blank" rel="noopener noreferrer"><div class="doc-card-title"><span>Web Traffic API - (Rust)</span><span class="doc-card-arrow" aria-hidden="true">↗</span></div><p class="doc-card-desc">See the full source code</p></a>
</div>


**3. Set up a Linode server**

Configure and create a new linode. Then, [set up SSH authentication](https://www.linode.com/docs/guides/use-public-key-authentication-with-ssh/) to securely access the Linode server from your terminal.

Prepare the newly created linode server environment by accessing and set it up for Rust/JavaScript development depending on the project you forked earlier. Install and set up [Git](https://git-scm.com/) too.

**4. Transfer project to Linode server**

SSH into your server, clone the project from GitHub, and follow its README instructions to set it up.

**5. Deploy**

Build, run the project, and set up load balancing for it.
[pm2](https://www.npmjs.com/package/pm2) is one of the good candidates out there with built-in load balancing, log monitoring, and bug/exception alerts.

<div class="doc-callout doc-callout-info"><div class="doc-callout-title">NOTE</div><div class="doc-callout-body">

You can go with your favorite options for where to buy domains, reverse proxy setup, and SSL certificates. [Caddy](https://caddyserver.com/) is another good option here.

</div></div>
