Documentation

menu
Nix FlakesHostingIntroductionBranch HostingPull-request DeploymentsSecretsPersistenceDebuggingMultiple ServersCustom DomainsExample: Typescript & GoExample: JitsiExample: RSS BridgeExample: Tiny Tiny RSSExample: SearxGarnyaml configWhat Garnix CI doesUsing Private InputsCachingGitHub Actions IntegrationBadges

Example with Typescript frontend and Go backendshare

template-typescript-go is a very simple example of a garnix-compatible repo that contains a web frontend and a backend server. The frontend simply asks the backend for the current date and time and displays it.

You can check out the garnix-deploy of that template repo here.

The frontend is written in Typescript, uses React as a frontend framework and webpack as its bundler.

The backend is written in Go and uses gorilla/mux for http routing.

Using this templateshare

To use this template:

  1. Create a garnix account if you don't have one yet.
  2. Fork the template-typescript-go repository on GitHub.
  3. Make sure the garnix GitHub App is installed on your forked repo.
  4. [Optional] Add your public ssh key in ./hosts/server.nix in your fork. This will allow you to ssh into your deployed host.
  5. Push your changes! garnix will build and deploy the host, including the frontend and the backend and make your server available on a garnix.me domain in a few minutes.