This is a small project to managing a ledger as API that was done by Golang + Fiber.
I've got a full-time job as a backend developer. So I need to improve my skill. It's no good if I still lazy after work. It's the reason why this project has been established.
- MySQL 🐬
- Xampp 🦴
- Golang 🦫
- Postman 👨🏽🚀
- Air (Hot Reload)⚡️
git clone https://github.com/Rayato159/paper-plane-backend
cd ./paper-plane-backend
go get ./...
air
You can define the database url by yourself and migrate it.
Migrate Up
migrate -database "mysql://user:password@(host:port)/database" -path "./pkg/database/migrations" up
Migrate Down
migrate -database "mysql://user:password@(host:port)/database" -path "./pkg/database/migrations" down
- Login
- Refresh Token
- Register
- Remove User
- Get Account Info
- Add Transaction
- Get Transaction By Id
- Get Transaction Lists
- Edit Transaction
- Remove Transaction
Postman collection and environment were in this repository. You just need to clone and import a collection and an environment into the Postman. Then have fun!
Don't be worry, all examples were added.