Skip to content

nikrooz/deno-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Restate + Deno Deploy Template

Welcome to the Restate TypeScript + Deno Deploy template! ✨

🏁 Getting Started

Prerequisites

  • 📦 Deno runtime installed
  • 🔧 npm or yarn package manager
  • 🌐 Deno account (for deployment)

🛠️ Local Development

Launch the local Restate server:

npx @restatedev/restate-server

Start the Deno server locally:

deno task dev

Connect your local service to Restate:

npx @restatedev/restate dep add http://localhost:9080

Iterate! 🔧

🚀 Deploy

📦 On Restate Cloud

This template includes a GitHub Actions workflow setup for automated deployment. To set up:

  • Add the following to Github Actions repository secrets:
    • RESTATE_ADMIN_URL: The Admin URL. You can find that out in Developers > Invoke. For example: https://some-environment-private-id.env.us.restate.cloud:9070
    • RESTATE_AUTH_TOKEN: Your Restate Cloud auth token. To get one, go to Developers > API Keys > Create API Key, and make sure to select Admin for role

  • Add the following to Github Actions repository variables:
    • DENO_PROJECT_NAME: Project name of the just created deno project

Once the repo is set up, just push to the main branch and you'll get your services updated.

Check the workflow deploy.yml for more details.

💡 Note: This setup uses Deno deploy classic. For deno deploy EA, refer to their documentation.

🔧 Manual Deployment

For more info on how to deploy manually, check:

🎯 Next Steps

Happy building! 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published