lucacasonato / fresh
- четверг, 16 июня 2022 г. в 00:31:42
Preact, but super edgy
⚠️ Not yet 1.0. Many things are subject to change. Documentation is lacking in many places. Try it out and give us feedback!
The next-gen web framework.
Fresh is a web framework that lets you build projects very fast, highly dynamic, and without the need of a build step. Fresh embraces isomorphic JavaScript like never before. Write a JSX component, have it render on the edge just-in-time, and then enhance it with client side JS for great interactivity.
Fresh does not have a build step - you write your code, deploy it to Deno Deploy, and from there everything is handled by the framework.
The documentation is available on fresh.deno.dev.
You can scaffold a new project by running the Fresh init script. To scaffold a
project in the myproject
folder, run the following:
deno run -A --no-check https://raw.githubusercontent.com/lucacasonato/fresh/main/init.ts my-project
To now start the project, use deno task
:
deno task start
To deploy the script to Deno Deploy, push your
project to GitHub, create a Fresh project, and link it to main.ts
file in
the created repository.
For a more in-depth getting started guide, visit the Getting Started page in the Fresh docs.