Skip to content

malkev1ch/apod

Repository files navigation

Golang APOD API 🚀

👨‍💻 Full list what has been used:

  • echo - Web framework.
  • pgx - PostgreSQL driver and toolkit for Go.
  • env - Library to parse environment variables.
  • zap - Logger.
  • uuid - UUID generator.
  • migrate - Database migrations. CLI and Golang library.
  • minio-go - AWS S3 MinIO Client SDK for Go.
  • testify - Testing toolkit.
  • dockertest - Tool to run docker container.
  • oapi-codegen - OpenAPI generator.
  • golangci-lint - Go linter runners.
  • Docker - Docker.

Tools installation:

go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest; \
go install github.com/golang-migrate/migrate/v4/cmd/migrate@latest; \
go install github.com/golang/mock/mockgen@latest

Docker usage:

make up // run all containers.

Local development usage:

make local-up // run all containers.
make run // it's easier way to attach debugger or rebuild/rerun project.

Docker-compose files:

docker-compose.yml - run all containers with go application.
docker-compose.local.yml - run all containers except go application.

ENV files:

.env.example - env for docker environment.
.env.example.local - env for local environment.

Go Server:

http://localhost:8080

SWAGGER UI:

http://localhost:8081

minio UI:

http://localhost:9000

username=access_key password=secret_key

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages