https://github.com/fakorede/go-rest-api
A REST api Built with Go Fiber, Gorm, MySQL
https://github.com/fakorede/go-rest-api
Last synced: about 2 months ago
JSON representation
A REST api Built with Go Fiber, Gorm, MySQL
- Host: GitHub
- URL: https://github.com/fakorede/go-rest-api
- Owner: Fakorede
- Created: 2021-04-05T11:08:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-05T11:41:14.000Z (about 4 years ago)
- Last Synced: 2025-04-22T23:16:42.560Z (about 2 months ago)
- Language: Go
- Homepage: https://documenter.getpostman.com/view/5901558/TzzAMcMt
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Get Started
```
git clone https://github.com/Fakorede/go-rest-api.git .cd go-rest-api
go mod download
```# Setup environment variables
> Add a .env file to the root with the below config
```
DB_HOST=
DB_PORT=
DB_USER=
DB_PASS=
DB_DATABASE=JWT_SECRET=
```# For Live reload
```
alias air='$(go env GOPATH)/bin/air'air
```# Features/Functionalities
- Login, Register, Forgot/Reset Password
- httpOnly cookies to store JWT
- Public and Secure Routes
- Authorization using Roles and Permissions
- Middlewares
- Relationships (One-to-Many and Many-to-Many)
- Migrations
- Pagination
- Mail for Reset Password Link([MailHog](https://github.com/mailhog/MailHog) must be installed locally and running to catch mails)
- Image Upload
- CSV Export# Routes
can be found in `routes/routes.go`
```
...
```# Built with
- Go
- Go Fiber
- GORM
- MySql