Simple notes app with a golang backend
You'll need docker and docker compose to run this project
- Open a terminal in the root of the project directory
- cd to the
appdirectory - Copy .env-example to a new file called .env
- cd to the
apidirectory - Copy .env-example to a new file called .env
- cd .. to the root of the project directory
- Run
docker compose up --build - Run the database migrations with the following commands `
docker exec -it api /bin/bash
go install github.com/golang-migrate/migrate/v4/cmd/migrate@latest
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
migrate -path migrations -database "postgres://gonotes:gonotes@db:5432/gonotes?sslmode=disable" up- Open a browser and navigate to http://localhost:3000