- Golang
- React
- Postgres
- Docker
- Swagger for docs
- Golang migrate for migrations
The 12 Factor App Roy Fielding REST dissertation Richardson Maturity Model
go run *.go
curl http://localhost:8080/v1/health
export PATH=$PATH:$(go env GOPATH)/bin
air init
docker exec -it postgres_db psql -U admin -d postgres
migrate create -seq -ext sql -dir ./cmd/migrate/migrations create_users
migrate create -seq -ext sql -dir ./cmd/migrate/migrations create_posts
migrate -path=./cmd/migrate/migrations -database="postgres://admin:adminpassword@localhost/social?sslmode=disable" up
migrate -path=./cmd/migrate/migrations -database="postgres://admin:adminpassword@localhost/social?sslmode=disable" down
migrate -path=./cmd/migrate/migrations -database="postgres://admin:adminpassword@localhost/social?sslmode=disable" force 4
http://localhost:8080/v1/swagger/index.html