Skip to content

ctiller15/tailscribe

Repository files navigation

TailScribe

  • A rewrite of TailScribe, a dog training notetaking app, written in Golang.

Running the project

Installations

Quickstart

# copy env files
cp .env.example .env

# start the database
docker-compose up -d

# start server
go run main.go

Running the tests

# 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

connecting to the db manually

# Local
psql -U postgres -h localhost

# Test db
psql postgresql://postgres:postgres@localhost:6432/animal_training_journal_test

running goose migrations

# move up migrations
./scripts/goose_up.sh

# move down migrations
./scripts/goose_down.sh

Running the container

(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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published