| .. | ||
| README.md | 681B |
Fresh App Template
Fresh projects should be created using the official initializer:
deno run -Ar jsr:@fresh/init {{PROJECT_NAME}}
cd {{PROJECT_NAME}}
This creates a complete Fresh project with all necessary files:
deno.json- Configurationmain.ts- Server entry pointclient.ts- Client entry pointvite.config.ts- Vite build configurationroutes/- Pages and API routesislands/- Interactive componentscomponents/- Server-only componentsstatic/- Static assets
Development
deno task dev
The dev server runs at http://localhost:5173 (not 8000).
Production
deno task build
deno deploy --prod