- written using DI - Dependency Injection ( full implementation of DI)
- clean architecture with config, logger, storage, handlers as separeted modules
- initialization of all dependencies in Main.go
- docker-compose with Postgres db service
Request:
{
"name": "New note",
"text": "today i wanted to eat the whole day"
}Response:
{
"id": 1,
"name": "note",
"text": "that's all!"
}
Response:
{
"name": "Final note",
"text": "Today is my last note in this summer"
}Request:
{
"name": "Not final note",
"text": "I changed my mind"
}Response:
Code:200
Request:
None
Response:
Code:200
RequestNone
Response:
[
{ "Id": 1, "Name": "12.01.2025", "Text": "it's finally 2025" },
{ "Id": 2, "Name": "12.11.2025", "Text": "i don't belive i survived" }
]Response:
{
"error": "error text"
}- set up
.envusing.env.example - install
docker+docker-compose - run
docker compose up --buildor add-dflag at the end to leave after all started