typedash-v2-backend

module
v0.0.0-...-e4eaca7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2025 License: CC0-1.0

README

typedash

Deployment link: https://typedash.songyang.dev

Getting started

  1. brew install sqlc pre-commit golangci-lint goimports golang-migrate redis postgresql
  2. pre-commit install
  3. make install
  4. Add export PATH="$HOME/go/bin:$PATH" to ~/.zshrc
  5. make db-setup
  6. make dev

Push database schema changes

We use go-migrate CLI to generate migrations, and sqlc to generate type-safe queries from the migrations

e.g. migrate create -ext sql -dir server/db/migrations -seq add_users_table

  1. After making changes to db/queries or generating a new migration, run
  2. make sqlc to generate queries
  3. make db-schema to run migrations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL