chore: update README (#346)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Jevtić Nenad
2022-07-04 11:14:46 +00:00
committed by GitHub
co-authored by Luca Casonato
parent 1ac2166daa
commit 9e75a5c065
+24 -11
View File
@@ -1,11 +1,13 @@
[Documentation](#documentation) | [Getting started](#getting-started)
# fresh # fresh
<img align="right" src="./www/static/logo.svg" height="150px" alt="the fresh logo: a sliced lemon dripping with juice"> <img align="right" src="./www/static/logo.svg" height="150px" alt="the fresh logo: a sliced lemon dripping with juice">
The next-gen web framework. **Fresh** is a next generation web framework, built for speed, reliability, and
simplicity.
Fresh is a next generation web framework, built for speed, reliability, and Some stand-out features:
simplicity. Some stand out features:
- Just-in-time rendering on the edge. - Just-in-time rendering on the edge.
- Island based client hydration for maximum interactivity. - Island based client hydration for maximum interactivity.
@@ -13,14 +15,16 @@ simplicity. Some stand out features:
- No build step. - No build step.
- No configuration necessary. - No configuration necessary.
- TypeScript support out of the box. - TypeScript support out of the box.
- File-system routing à la Next.js - File-system routing à la Next.js.
## Documentation ## 📖 Documentation
The [documentation](https://fresh.deno.dev/docs/) is available on The [documentation](https://fresh.deno.dev/docs/) is available on
[fresh.deno.dev](https://fresh.deno.dev/). [fresh.deno.dev](https://fresh.deno.dev/).
## Getting started ## 🚀 Getting started
Install [Deno CLI](https://deno.land/) version 1.23.0 or higher.
You can scaffold a new project by running the Fresh init script. To scaffold a You can scaffold a new project by running the Fresh init script. To scaffold a
project in the `my-project` folder, run the following: project in the `my-project` folder, run the following:
@@ -29,21 +33,30 @@ project in the `my-project` folder, run the following:
deno run -A -r https://fresh.deno.dev my-project deno run -A -r https://fresh.deno.dev my-project
``` ```
Go to `my-project` folder: Then navigate to the newly created project folder:
``` ```
cd my-project cd my-project
``` ```
To now start the project, use `deno task`: From within your project folder, start the development server using the
`deno task` command:
``` ```
deno task start deno task start
``` ```
To deploy the script to [Deno Deploy](https://deno.com/deploy), push your Now open http://localhost:8000 in your browser to view the page. You make
project to GitHub, [create a Deno Deploy project](https://dash.deno.com/new), changes to the project source code and see them reflected in your browser.
and link it to the **`main.ts`** file in the root of the created repository.
To deploy the project to the live internet, you can use
[Deno Deploy](https://deno.com/deploy):
1. Push your project to GitHub.
2. [Create a Deno Deploy project](https://dash.deno.com/new).
3. [Link][https://deno.com/deploy/docs/projects#enabling] the Deno Deploy
project to the **`main.ts`** file in the root of the created repository.
4. The project will be deployed to a public $project.deno.dev subdomain.
For a more in-depth getting started guide, visit the For a more in-depth getting started guide, visit the
[Getting Started](https://fresh.deno.dev/docs/getting-started) page in the Fresh [Getting Started](https://fresh.deno.dev/docs/getting-started) page in the Fresh