- A rewrite of TailScribe, a dog training notetaking app, written in Golang.
# copy env files
cp .env.example .env
# start the database
docker-compose up -d
# start server
go run main.go# Start up docker database container
docker-compose up animal-training-journal-test-db
# Run local migrations - get container up to date
./scripts/init_test.sh
# Run tests
go test ./...
# Clearing the database
rm -rf ./postgres/test_data# Local
psql -U postgres -h localhost
# Test db
psql postgresql://postgres:postgres@localhost:6432/animal_training_journal_test# move up migrations
./scripts/goose_up.sh
# move down migrations
./scripts/goose_down.sh(Requires Docker)
# macos m1+
docker buildx build --platform linux/amd64 -t tailscribe .
# linux
docker build -t tailscribe .
# Start up the database
docker-compose up animal-training-journal-db
# run
docker run --env-file=.env -p 8080:8080 tailscribe