module
Version:
v0.0.0-...-36c16f3
Opens a new window with list of versions in this module.
Published: Jul 13, 2020
License: MIT
Opens a new window with license information.
README
¶
CRUD with Go and Package Oriented Design (POD)
Simple implementation of a basic API with CRUD following Package Oriented Design guidelines.
This implementation uses MongoDB as Database and GinGonic as a Router.
Dependencies will be downloaded with go install
In order to run this project, cd into ./scripts
and run docker-compose up
.
This will build a docker container with MongoDB.
Operations
Supported requests:
- GET
http://localhost:8080/income
- POST
http://localhost:8080/income
- PUT
http://localhost:8080/income
- DELETE
http://localhost:8080/income
Request Body:
Income has fields for
- amount
- reason
- date
- category
{
"amount" : 23
}
Directories
¶
cmd
|
|
|
|
|
|
|
|
internal
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.