Deploy via github action
- Go to https://deno.com/deploy and Sign up/in
- Select Github repository
- Add Github Account
- Choose single repo or all repos
- Click again on Select Github repository
- Your name or organization
- Choose repo
- Select Production branch
- Select
main.ts
file - Change name but it need to be unique
- Link and after few sec we have working app which will update after push to repo
Deploying you project from local
- Go to https://deno.com/deploy and Sign up/in
- Click on your profile picture then "Access Tokens"
- Create and copy access token
- Go back to projects and create new project
- Choose Empty Project
- Copy name of your project
- Use
deployctl deploy --project=PROJECT_NAME --token=TOKEN --import-map=import_map.json src/index.ts
- Check returned url
- If every thing is correct then use same command but add
--prod
- App is now deployed and eveyone can access it :D
Endpoints
GET /todos - list of all todos, POST /todo {text:'todo'} - create todo, PATCH /todo/:id - change todo's status