Skip to content

Rayato159/paper-plane-backend

Repository files navigation

⚡️ Paper Plane Project

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.

📝 Quick Start

Installation

  • MySQL 🐬
  • Xampp 🦴
  • Golang 🦫
  • Postman 👨🏽‍🚀
  • Air (Hot Reload)⚡️
git clone https://github.com/Rayato159/paper-plane-backend
cd ./paper-plane-backend
go get ./...
air

Database Schema

Migration the Database

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

Function Lists

🔒 Authentication
  • Login
  • Refresh Token
🧑‍💻 Users
  • Register
  • Remove User
🧾 Accounts
  • Get Account Info
💵 Transactions
  • Add Transaction
  • Get Transaction By Id
  • Get Transaction Lists
  • Edit Transaction
  • Remove Transaction

Test the API with Postman

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.

About

To make an account web-application for my alone life.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published