Skip to content

dubs3c/go-bookie

Repository files navigation

SAMLA

SAMLA: A new version of bookie, written in Go :)

Running SAMLA

Run docker container

docker run -e POSTGRES_PASSWORD=bookie -e POSTGRES_USER=bookie -e POSTGRES_DB=bookie -p 5432:5432 -d postgres

Run Migrations

Install migrate from here https://github.com/golang-migrate/migrate.

$ go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
$ migrate -database postgres://bookie:bookie@localhost:5432/bookie?sslmode=disable -path migrations up

Frontend

Install dependencies

npm install

Run app

npm run dev

Run storybook

npm run storybook