├── .env ├── .gitignore ├── .travis.yml ├── Dockerfile.in ├── Dockerfile.test ├── LICENSE ├── Makefile ├── README.md ├── cmd └── blog_backend │ ├── apis │ ├── apis_test.go │ ├── book.go │ ├── book_test.go │ ├── email.go │ ├── post.go │ ├── post_test.go │ ├── project.go │ ├── project_test.go │ ├── section.go │ ├── section_test.go │ ├── tag.go │ └── tag_test.go │ ├── config │ └── config.go │ ├── daos │ ├── book.go │ ├── book_test.go │ ├── post.go │ ├── post_test.go │ ├── project.go │ ├── project_test.go │ ├── section.go │ ├── section_test.go │ ├── tag.go │ └── tag_test.go │ ├── main.go │ ├── middleware │ ├── brotli_test.go │ ├── cors.go │ └── cors_test.go │ ├── models │ └── model.go │ ├── services │ ├── book.go │ ├── book_test.go │ ├── post.go │ ├── post_test.go │ ├── project.go │ ├── project_test.go │ ├── section.go │ ├── section_test.go │ ├── tag.go │ └── tag_test.go │ └── test_data │ ├── db.sql │ ├── init.go │ └── test_case_data │ ├── book_t1.json │ ├── post_t1.json │ ├── post_t3.json │ ├── post_t4.json │ ├── project_t1.json │ ├── section_t1.json │ └── tag_t1.json ├── config ├── errors.yaml └── server.yaml ├── docker-compose.yml ├── go.mod ├── pkg └── version.go ├── postgres ├── Dockerfile ├── README.md ├── create_db.sh ├── schema.sql └── test_data.sql ├── reports.sh └── sonar-project.properties /.env: -------------------------------------------------------------------------------- 1 | POPULATE_DB=1 2 | HOST=localhost 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/.travis.yml -------------------------------------------------------------------------------- /Dockerfile.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/Dockerfile.in -------------------------------------------------------------------------------- /Dockerfile.test: -------------------------------------------------------------------------------- 1 | FROM golang:1.17-alpine 2 | 3 | RUN apk add gcc g++ 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/README.md -------------------------------------------------------------------------------- /cmd/blog_backend/apis/apis_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/apis_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/book.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/book.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/book_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/book_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/email.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/post.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/post_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/post_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/project.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/project.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/project_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/project_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/section.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/section.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/section_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/section_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/tag.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/tag.go -------------------------------------------------------------------------------- /cmd/blog_backend/apis/tag_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/apis/tag_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/config/config.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/book.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/book.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/book_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/book_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/post.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/post_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/post_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/project.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/project.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/project_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/project_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/section.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/section.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/section_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/section_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/tag.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/tag.go -------------------------------------------------------------------------------- /cmd/blog_backend/daos/tag_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/daos/tag_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/main.go -------------------------------------------------------------------------------- /cmd/blog_backend/middleware/brotli_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/middleware/brotli_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/middleware/cors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/middleware/cors.go -------------------------------------------------------------------------------- /cmd/blog_backend/middleware/cors_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/middleware/cors_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/models/model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/models/model.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/book.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/book.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/book_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/book_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/post.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/post.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/post_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/post_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/project.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/project.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/project_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/project_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/section.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/section.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/section_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/section_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/tag.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/tag.go -------------------------------------------------------------------------------- /cmd/blog_backend/services/tag_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/services/tag_test.go -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/db.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/db.sql -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/init.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/init.go -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/test_case_data/book_t1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/test_case_data/book_t1.json -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/test_case_data/post_t1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/test_case_data/post_t1.json -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/test_case_data/post_t3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/test_case_data/post_t3.json -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/test_case_data/post_t4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/test_case_data/post_t4.json -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/test_case_data/project_t1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/test_case_data/project_t1.json -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/test_case_data/section_t1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/test_case_data/section_t1.json -------------------------------------------------------------------------------- /cmd/blog_backend/test_data/test_case_data/tag_t1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/cmd/blog_backend/test_data/test_case_data/tag_t1.json -------------------------------------------------------------------------------- /config/errors.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/config/errors.yaml -------------------------------------------------------------------------------- /config/server.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/config/server.yaml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/go.mod -------------------------------------------------------------------------------- /pkg/version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/pkg/version.go -------------------------------------------------------------------------------- /postgres/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/postgres/Dockerfile -------------------------------------------------------------------------------- /postgres/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/postgres/README.md -------------------------------------------------------------------------------- /postgres/create_db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/postgres/create_db.sh -------------------------------------------------------------------------------- /postgres/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/postgres/schema.sql -------------------------------------------------------------------------------- /postgres/test_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/postgres/test_data.sql -------------------------------------------------------------------------------- /reports.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/reports.sh -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinHeinz/blog-backend/HEAD/sonar-project.properties --------------------------------------------------------------------------------