Skip to content

rogeriods/contact-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📇 Contacts Agenda API (Go + Gin + SQLite)

Simple REST API to manage your contacts via JWT authentication.

Techs

  • Go (Golang)
  • Gin (framework HTTP)
  • SQLite
  • JWT (autenticação)
  • Bcrypt (hash de senha)

Project Structure

contact-api
├───cmd
│   └───api/main.go # Entry point
├───internal
│   ├───database/ # Database connection
│   ├───handler/ # Handlers HTTP
│   ├───middleware/ # Middlewares (JWT)
│   └───model/ # Structures (DTOs)

Running

1. Clone repo

git clone https://github.com/rogeriods/contacts-api.git
cd contacts-api

2. Install Packages

go mod tidy

3. Run Project

go run cmd/api/main.go

On resources folder we have 'api.http' to test API.

About

SIMPLE REST API in Golang to Start your Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors