https://github.com/roniahmad/go-cleancode-backend
Ready to use Golang backend with clean architecture and JWT authentication
https://github.com/roniahmad/go-cleancode-backend
clean-architechture clean-code fiber golang jwt jwt-authentication viper zerolog
Last synced: about 2 months ago
JSON representation
Ready to use Golang backend with clean architecture and JWT authentication
- Host: GitHub
- URL: https://github.com/roniahmad/go-cleancode-backend
- Owner: roniahmad
- License: mit
- Created: 2025-01-05T03:19:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-17T15:30:36.000Z (4 months ago)
- Last Synced: 2025-02-08T07:13:56.437Z (3 months ago)
- Topics: clean-architechture, clean-code, fiber, golang, jwt, jwt-authentication, viper, zerolog
- Language: Go
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang backend with clean architecture and JWT authentication
## Description
This is a ready to use Golang backend with clean architecture and JWT authentication.
## Prerequisite
- Golang : https://github.com/golang/go
- MySQL (Database) : https://github.com/mysql/mysql-server
- Air - Live reload : https://github.com/air-verse/air## Architecture

## Framework & Library
- GoFiber (HTTP Framework) v2 : https://github.com/gofiber/fiber
- Viper (Configuration) : https://github.com/spf13/viper
- Go Playground Validator (Validation) : https://github.com/go-playground/validator
- Zerolog : https://github.com/rs/zerolog
- JWT : https://github.com/golang-jwt/jwt## Configuration
All configuration is in `./config/config.yaml` file.
## Database
Available at `./.db/wetees.sql` file.
## Available Features
- Health Check
- Login
- Register
- Change Password
- Order Item, Cancel Order, Checkout
- Deposit, Withdrawal## Postman Collection
Available at `./.postman/WeTeEs.postman_collection.json` file.
## Run web server
```bash
go run ./cmd/main.go
```or
```bash
air -c .air.toml
```or
```bash
make watch-server
```## References
- The Clean Architecture : https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html
- Fiber : https://gofiber.io/