On this page
Basic Fresh site
This tutorial will cover how to deploy a Fresh application on Deno Deploy.
Fresh is a web framework built for Deno, akin to Express for Node.
Step 1: Create Fresh application Jump to heading
deno run -A -r https://fresh.deno.dev fresh-site
      
    
      
    To run this application locally:
deno task start
      
    
      
    You can edit routes/index.js to modify the application.
Step 2: Create a new Github repo and link your local Fresh application. Jump to heading
- 
Create a new Github repo and record the git repo remote URL
 - 
From your local
fresh-site, initialize git and push to the new remote repo:git init git add . git commit -m "First commit" git remote add origin <remote-url> git push origin main 
Step 3: Deploy to Deno Deploy Jump to heading
- Navigate to https://dash.deno.com/new_project.
 - Connect to your GitHub account and select your repository.
 - Fill in the values on the form:
- Give your project a name
 - Select 
Freshfrom the "Framework Preset" options - Set production branch to 
main - Select 
main.tsas the entrypoint file 
 - Click "Deploy Project" to kick off Deno Deploy.
 - Once deployed, you can view your new project at url provided in your project dashboard.
 
Help us make these docs great!
Make a contribution
Deno's docs are open source. See something that's wrong or unclear? Submit a pull request:
Edit this page