Categorygithub.com/StuardAP/clean_rest_golang
module
0.0.0-20241019005745-762d107caf7b
Repository: https://github.com/stuardap/clean_rest_golang.git
Documentation: pkg.go.dev

# README

Clean REST API with Go and MySQL

Description

This project is a REST API built with Go and MySQL, specifically designed to handle the operations of an ecommerce. It follows the clean architecture approach, allowing a well structured and easy to maintain code. This API provides endpoints to manage users, products and inventory, and focuses on scalability and modularity.

Project Structure The project is organized as follows

└── πŸ“clean_rest_golang
    └── πŸ“cmd
        └── πŸ“api
            └── main.go
    └── πŸ“infrastructure
        └── πŸ“database
            └── πŸ“queries
                └── πŸ“product
                    └── product_repository_query.go
                └── πŸ“user
                    └── user_repository_query.go
        └── πŸ“http
            └── πŸ“handlers
                └── πŸ“product
                    └── product_hander.go
                └── πŸ“user
                    └── user_handler.go
            └── πŸ“middleware
            └── πŸ“routes
                └── product_route.go
                └── status_route.go
                └── user_route.go
            └── router.go
    └── πŸ“internal
        └── πŸ“domain
            └── πŸ“entities
                └── inventory_entity.go
                └── order_entity.go
                └── product_entity.go
                └── user_entity.go
            └── πŸ“repositories
                └── product_repository.go
                └── user_repository.go
            └── πŸ“usecases
                └── πŸ“product
                    └── product_usacase.go
                └── πŸ“user
                    └── user_usecase.go
    └── πŸ“migrations
        └── 20241018233645_add_user_table.down.sql
        └── 20241018233645_add_user_table.up.sql
    └── πŸ“pkg
        └── πŸ“config
            └── config.go
            └── database.go
            └── jwt.go
            └── server.go
        └── πŸ“database
            └── πŸ“mysql
                └── setup_mysql.go
        └── πŸ“utilities
            └── πŸ“auth
                └── jwt.go
                └── password_encrypt.go
    └── .air.toml
    └── .dockerignore
    └── .env
    └── .env.example
    └── .gitignore
    └── docker-compose.yml
    └── Dockerfile
    └── go.mod
    └── go.sum
    └── Makefile
    └── README.md
    └── script.sh

# Packages

No description provided by the author
No description provided by the author
No description provided by the author