repositorypackage
1.0.2
Repository: https://github.com/moneybackward/backend.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Money Backward Backend
How to Setup
-
Install dependecies
make install
-
Setup environment:
Copy
.env.example
to.env
and adjust the content accordingly. -
Setup database:
Create a PostgreSQL database with the credentials as specified in your
.env
file.
How to Run
See Makefile for details
-
Run as developer
make dev
-
Build and run
make build-and-run
* clean the built binary: make clean
Layers
Detailed explanations can be read on the corresponding folders'
README
.
Client <=(Request/Response)=> Route <=(Request/Response)=> Controller <=(DTO)=> Service <=(DTO)=> Repository <=(Models/DAO)=> Database
- Route: defines the routes, the HTTP method used, and
Controller
s' method that handles the request. - Controller: handles the request and reply with response.
- Service: handles the input from
Controller
and do the business logic. - Repository: read or write to database as called by the
Service
.
:information_source: DB Schema can be seen in here