Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.29 KB

Readme.md

File metadata and controls

27 lines (20 loc) · 1.29 KB

Backend LMS

GoDoc Go Report Card License

Packages Docs

Domain

should contains all the data models and it's business logic and validation

Repository

repository is in charge of storage no other logic should be in here other than update, create, and delete into storage. each subfolder is the implementation based on database used, mock package is used only for early development for testing purpose

Services

services used as a wrapper between domain and repository, containing logic that will be used in application

Handler

as the name suggest, the http handler, responsible processing the http request and response

API Docs

https://documenter.getpostman.com/view/5019276/SW18wv5z

Migration step

  1. Create a new migration file on migration/
  2. the migration need to be following the example on create_user
  3. copy .env.example as .env
  4. run make migrate