An open API service indexing awesome lists of open source software.

https://github.com/zeabur/deno-fresh-template

A simple Deno app with Fresh framework deployed on Zeabur.
https://github.com/zeabur/deno-fresh-template

cicd cloud deno deploy deployment fresh zeabur

Last synced: 8 months ago
JSON representation

A simple Deno app with Fresh framework deployed on Zeabur.

Awesome Lists containing this project

README

          

# deno-fresh-template

[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/WK9JCJ)

- Follow the commands to bootstrap your [Deno](https://deno.land/) project with [Fresh](https://fresh.deno.dev/) framework:

``` shell
deno run -A -r https://fresh.deno.dev my-project
cd my-project
deno task start
```

- In `./main.ts`, add `port: Deno.env.get("PORT")` to the `start` function and listen to the custom port given the `.env` file

```typescript
start(manifest, { plugins: [twindPlugin(twindConfig)], port: Deno.env.get("PORT")}, );
```

- To run locally, copy `.env.defaults` to a new file `.env`, and modify `.env` by assigning the port that you would like to run your application.

```shell
cp .env.defaults .env
```

```shell
# in .env
PORT=
```

- **Do not** add `fresh.gen.ts` to your `.gitignore` file.