This repository contains a simple API built with Go for educational purposes, demonstrating key concepts such as HTTP routing, request handling, and basic database operations.
- RESTful API: Implements basic CRUD operations.
- Gin Framework: For HTTP request handling.
- GORM: ORM for interacting with a database.
- SQLite: Lightweight database.
- JWT Authentication: Secure API access using JSON Web Tokens.
- Go (Golang)
- Gin (HTTP Framework)
- GORM (ORM)
- SQLite (Database)
- Go 1.23 or later
- Clone the repository:
git clone https://github.com/Somaycon/api-go.git cd api-go
- Install the dependencies:
go mod tidy
- Run the application:
go run main.go
- After running the project, in your browser search for (http://localhost:8080/swagger/index.html) or click here