Skip to content

amitsuthar69/teleport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project teleport

A URL shortener written in Go, Truso LibSQL db and HTMX. As this project is deployed on Railway, the initial request can take upto 4-5 seconds, have patience :)

Getting Started

Install Dependencies

go install github.com/a-h/templ/cmd/templ@latest
go install github.com/cosmtrek/air@latest

Build Templates

templ generate

Build Application

go build -o main cmd/api/main.go

Hot Reload

air

.env

PORT=42069
APP_ENV=local
SALT=
DB_URL=libsql://dbname-username.turso.io?authToken=

For Turso auth token and CLI, visit Turso Docs.