fresh README

The project's README from github.com/freshframework/fresh. As one markdown file: README.md.

Documentation | Getting started | API Reference

fresh

The Fresh logo: a sliced lemon dripping with juice

Fresh is a next generation web framework, built for speed, reliability, and simplicity.

Some stand-out features:

📖 Documentation

The documentation is available on usefresh.dev.

🚀 Getting started

Install the latest Deno CLI version.

You can scaffold a new project by running the Fresh init script. To scaffold a project run the following:

deno run -Ar jsr:@fresh/init

Then navigate to the newly created project folder:

cd fresh-project

From within your project folder, start the development server using the deno task command:

deno task dev

Now open http://localhost:5173 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:

  1. Push your project to GitHub.
  2. Create a Deno Deploy project.
  3. Select your GitHub repository.
  4. The project will be deployed to a public $project.$username.deno.net subdomain with no configuration necessary.

For a more in-depth getting started guide, visit the Getting Started page in the Fresh docs.

Contributing

We appreciate your help! To contribute, please read our contributing guideline.

Adding your project to the showcase

If you feel that your project would be helpful to other Fresh users, please consider putting your project on the showcase. However, websites that are just for promotional purposes may not be listed.

To take a screenshot, run the following command.

deno task screenshot [url] [your-app-name]

Then add your site to showcase.json, preferably with source code on GitHub, but not required.

Badges

Made with Fresh

[![Made with Fresh](https://usefresh.dev/fresh-badge.svg)](https://usefresh.dev)
<a href="https://usefresh.dev">
  <img
    width="197"
    height="37"
    src="https://usefresh.dev/fresh-badge.svg"
    alt="Made with Fresh"
  />
</a>

Made with Fresh(dark)

[![Made with Fresh](https://usefresh.dev/fresh-badge-dark.svg)](https://usefresh.dev)
<a href="https://usefresh.dev">
  <img
    width="197"
    height="37"
    src="https://usefresh.dev/fresh-badge-dark.svg"
    alt="Made with Fresh"
  />
</a>

Hashtags

Use the following hashtags in your social media posts that reference Fresh and as Topics in the About section of your GitHub repos that contain Fresh code. It will assure maximum visibility for your posts and code, and promote Fresh development ecosystem visibility.

Github repo Topics will not include the hash symbol.

fresh (freshframework/fresh)

Searching Database…

13.8K ·GitHub
Что это такое?Fresh — это веб-фреймворк нового поколения для Deno, ориентированный на скорость, надёжность и простоту. Он использует островную гидратацию на стороне клиента, поэтому по умолчанию в браузер не отправляется никакой JS.
Это фреймворк или библиотека?Это полноценный веб-фреймворк с маршрутизацией по файловой системе, похожей на Next.js. Он создан специально для работы на Deno, а не на Node.js.
Как мне его запустить?Установите Deno CLI, запустите скрипт инициализации Fresh, чтобы создать новый проект, а затем запустите сервер разработки командой deno task.
Нужно ли установить Deno, прежде чем пробовать это?Да, для Fresh нужен Deno CLI; шагов с Node.js или npm не требуется.
Нужно ли сначала что-то настраивать?Нет, Fresh не требует никакой конфигурации для начала работы, включая деплой.
Что на самом деле означает «островная гидратация на клиенте»?Гидратация с помощью JS на клиенте применяется только к интерактивным компонентам (островам), которые вы пометили. Остальная часть страницы остаётся статичным HTML, поэтому по умолчанию JS не отправляется.
Во Fresh есть поддержка TypeScript?Да, поддержка TypeScript включена сразу, без дополнительной настройки.
Где посмотреть реальные проекты на Fresh?Есть сообщество-витрина (showcase.json), куда разработчики могут добавлять свои сайты на Fresh, желательно со ссылкой на исходный код на GitHub.
What are similar projects?nuxt, framework, astro, vista, graphql, core, gatsby, razzle
Size
45.3 MB
Stars
13.8K
Age
5y
Commits · 90 Days