Documentation
Example with Typescript frontend and Go backend
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 template
To use this template:
- Create a garnix account if you don't have one yet.
- Fork the template-typescript-go repository on GitHub.
- Make sure the garnix GitHub App is installed on your forked repo.
- [Optional] Add your public ssh key in ./hosts/server.nix in your fork. This will allow you to ssh into your deployed host.
- 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.