This repository contains a microservice which manages products and categories for a fictitious application called Full Cycle E-commerce. This service is an API written in Golang responsible for creating and fetching products and categories for the E-commerce platform.
- Docker
- Golang
- MySQL
-
Clone the repository:
git clone https://github.com/guigoliver/go-api.git cd go-api
-
Start the database using Docker Compose:
docker-compose up
-
Open another terminal and start the application:
go run cmd/catalog/main.go
The application will be available on port 8080.
For detailed information about the endpoints provided by this API, please refer to the API Documentation
The functionalities provided by this API are minimal. Here are some known areas for improvement and further development:
- Error Handling: Improve error handling across the API, making sure to address all the probable scenarios and provide friendly and clear messages.
- Testing: Include unit tests that cover all the functions in the API.
- Performance: Check for possible weak spots and improve the overall performance of the queries.
This project is intended for educational purposes, showcasing a simple yet functional API service. Although this is a study case, we welcome contributions! If you would like to lend a hand on the aforementioned points of improvement, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or fix.
- Commit your changes, making sure to include a descriptive message.
- Push your changes.
- Open a pull request to the main repository.