This commit adds an update.ts tool that makes it easy to upgrade existing Fresh projects to the latest version of Fresh. This tool updates dependency versions in the import map, and includes some code mods: 1. update projects from classic JSX to automatic JSX 2. update projects from legacy twind integration to twind plugin Both of these code mods get you about 95% of the way there most of the time. Users might still need to do some manual work to get their projects fully updated.
Documentation | Getting started
fresh
Fresh is a next generation web framework, built for speed, reliability, and simplicity.
Some stand-out features:
- Just-in-time rendering on the edge.
- Island based client hydration for maximum interactivity.
- Zero runtime overhead: no JS is shipped to the client by default.
- No build step.
- No configuration necessary.
- TypeScript support out of the box.
- File-system routing à la Next.js.
📖 Documentation
The documentation is available on fresh.deno.dev.
🚀 Getting started
Install Deno CLI version 1.23.0 or higher.
You can scaffold a new project by running the Fresh init script. To scaffold a
project in the deno-fresh-demo folder, run the following:
deno run -A -r https://fresh.deno.dev deno-fresh-demo
Then navigate to the newly created project folder:
cd deno-fresh-demo
From within your project folder, start the development server using the
deno task command:
deno task start
Now open http://localhost:8000 in your browser to view the page. You make changes to the project source code and see them reflected in your browser.
To deploy the project to the live internet, you can use Deno Deploy:
- Push your project to GitHub.
- Create a Deno Deploy project.
- Link the Deno Deploy
project to the
main.tsfile in the root of the created repository. - The project will be deployed to a public $project.deno.dev subdomain.
For a more in-depth getting started guide, visit the Getting Started page in the Fresh docs.
Badges
[](https://fresh.deno.dev)
<a href="https://fresh.deno.dev">
<img width="197" height="37" src="https://fresh.deno.dev/fresh-badge.svg" alt="Made with Fresh" />
</a>
[](https://fresh.deno.dev)
<a href="https://fresh.deno.dev">
<img width="197" height="37" src="https://fresh.deno.dev/fresh-badge-dark.svg" alt="Made with Fresh" />
</a>