wizeline / CA-Microservices-Go

This project is a template generator based on Golang focused on a Rest-API.
1 stars 0 forks source link

Create basic folder structure for app #12

Closed maritza05 closed 3 months ago

maritza05 commented 4 months ago

This PR setups the basic structure to create a clean architecture with Go. Implements the structure discussed in the issue #1

So the project starts with this structure:

❯ tree .
.
├── Makefile
├── README.md
├── cmd
│   └── http-rest-api
│       └── main.go
├── deployments
│   ├── Dockerfile
│   ├── app.env
│   └── docker-compose.yml
├── go.mod
└── src
    └── movies
        ├── domain
        │   ├── movie.go
        │   └── movie_repository.go
        ├── infraestructure
        │   ├── http_handlers.go
        │   ├── postgresql_movie_repository.go
        │   └── tests
        └── usecases
            ├── add_movie.go
            ├── remove_movie.go
            └── tests
                └── test_add_movie.go

This setups just the basic boilerplate code to start to implement an api for the entity movie.