Skip to content

mateus-dev-me/go-products-api

Repository files navigation

Documentação do Projeto

Go Versions License

A Simple API built using Clean Architecture.

Table of Contents

  1. Project Overview
  2. Project Structure
  3. Installation
  4. Usage

Project Overview

This project is a web application designed to provide an API for managing products in a system. The project is structured based on Clean Architecture, promoting a modular and maintainable organization that facilitates upkeep and expansion.

Project Structure

The project structure is organized as follows:

.
│
├── cmd/
│   └── main.go
│
├── internal/
│   ├── domain/
│   ├── infrastructure/
│   └── use_cases/
│
├── interfaces/
│   └── api/
│       └── controllers/
│
├── tests/
│   ├── use_cases/
│   ├── infrastructure/
│   └── controllers/
│
├── migrations/
│
├── docs/
│
├── go.mod
└── go.sum

Installation

Prerequisites:

  • Go (version 1.23.0 or higher)
  • Docker (for container setup)
  1. Clone the repository:

    git clone https://github.com/mateus-dev-me/ama-api.git
    cd ama-api
  2. Configure environment variables:

    Create a .env file based on the .env.example file and configure your database credentials and parameters.

  3. Install dependencies:

    go mod tidy
  4. Run database migrations:

    go generate

Usage

Start the Server:

go run ./cmd/main.go

The API will be available at http://localhost:8080/api/v1

About

A Simple API built using Clean Architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published