https://github.com/authena-ru/courses-organization
Courses organization domain for Authena course passing project
https://github.com/authena-ru/courses-organization
api backend clean-architecture ddd ddd-architecture ddd-cqrs go mongodb openapi3 rest
Last synced: 5 months ago
JSON representation
Courses organization domain for Authena course passing project
- Host: GitHub
- URL: https://github.com/authena-ru/courses-organization
- Owner: authena-ru
- License: mit
- Created: 2021-05-24T19:26:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-17T10:26:44.000Z (over 4 years ago)
- Last Synced: 2024-06-20T16:52:17.310Z (about 2 years ago)
- Topics: api, backend, clean-architecture, ddd, ddd-architecture, ddd-cqrs, go, mongodb, openapi3, rest
- Language: Go
- Homepage:
- Size: 646 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codecov.io/gh/authena-ru/courses-organization)
# Authena courses organization service
Courses organization domain for Authena course passing project
## Build & Run (Locally)
### Prerequisites
- go 1.17
- Docker
- golangci-lint
### Environment
You can create .env file with following environment variables or set them manually:
```dotenv
APP_ENVIRONMENT=local # Environment name and config name to parse
MONGO_URI=mongodb://mongodb:27017
MONGO_USERNAME=admin
MONGO_PASSWORD=qwerty
```
### Commands
- ``make openapi`` — generates boilerplate code, types and server interface that conforms to OpenAPI
- ``make go-build`` — builds project for GOOS=linux
- ``make lint`` — runs linters
- ``make dev`` - runs dev environment
- ``make test-unit`` — runs unit tests and save cover profile
- ``make test-integration`` — runs integration tests and save cover profile
- ``make test-cover`` — builds code cover report
- ``make run-test-db`` — runs Docker with test Mongo DB
- ``make stop-test-db`` — stops Docker with test Mongo DB