Create a project | Fresh docs (original) (raw)

New Fresh projects can be created by using the Fresh project creation tool. It will scaffold out a new project with some example files to get you started.

To create a new project, run:

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

This will scaffold out the new project, then switch into the newly created directory, and then start the development server.

This will create a directory containing some files and directories. There are 4 files that are strictly necessary to run a Fresh project:

A deno.json file is also created in the project directory. This file does two things:

Two important folders are also created that contain your routes and islands respectively:

Finally a static/ folder is created that contains static files that are automatically served “as is”. Learn more about static files.