Crudventure-go is a project that implements api system with basic functionalities to manage data struct Product. This project was developed in Go (Golang) and aims to serve as a foundation for learning, implementing, or expanding applications that require CRUD operations.
- Modular structure for easy maintenance and expansion.
- Use of best practices in Go development.
- Integration with relational or non-relational databases.
- RESTful API for system communication.
Make sure you have the following prerequisites installed in your environment:
-
Clone the repository:
git clone https://github.com/giordanGarci/crudventure-go.git
-
Navigate to the project directory:
cd crudventure-go
-
Install dependencies:
go mod tidy
-
Configure the environment variables to connect to the database. Use the
.env.example
file as a reference:cp .env.example .env
Edit the
.env
file with your database credentials. -
Run the application:
go run main.go
Once the application is running, you can access the API endpoints to perform CRUD operations. For example:
- GET
/products
: List all items. - POST
/product
: Create a new item. - GET
/product/{id}
: Get an existing product.
Feel free to contribute improvements to the project. Follow these steps to contribute:
- Fork the repository.
- Create a branch for your contribution:
git checkout -b my-contribution
- Commit your changes:
git commit -m "Description of changes"
- Push the changes to your fork:
git push origin my-contribution
- Open a Pull Request on the original repository.