Skip to content

dzakimaulana/golaundry

Repository files navigation

Project logo

Golaundry

Status Golang Docker Fiber PostgreSQL Gorm

🤔 About

Hi, folks! this is a backend application for laundry bussines who can make the owner more easier to manage. In this app I using golang with fiber framework to build API service and gorm to get data from Postgres. The owner will be have admin account who have previledge to all endpoint and his employee only doing add transaction. I use JWT token and session to create authorization and authentication.

🚦Getting Started

🐋 Using Docker

You can pull the latest Docker image for GoLaundry from Docker Hub:

docker pull kymmsenpai/golaundry:latest

✨ Clone Github

  1. Clone the Repository
git clone https://github.com/dzakimaulana/golaundry.git
  1. Docker Compose
docker compose up 

📃 Api Documentation

Authorization

Will be saved in a cookie with name my-session

Customer

Method Endpoint Admin
POST /api/customer/add YES
GET /api/customer/get/:id NO
GET /api/customer/get NO

Item

Method Endpoint Admin
POST /api/item/add YES
GET /api/item/get/:id NO
GET /api/item/get NO
UPDATE /api/item/update YES
DELETE /api/item/delete YES

Transaction

Method Endpoint Admin
POST /api/transaction/add NO
GET /api/transaction/get/:id NO
GET /api/transaction/get NO

User

Method Endpoint Admin
POST /api/item/login YES
POST /api/item/create-user NO
GET /api/item/get NO
GET /api/item/get/:id YES
PUT /api/item/reset-password YES
POST /api/item/reset-password YES

🗄️File Structure

In my project development practices, the adoption of the Repository Pattern plays a pivotal role in enhancing the modularity, maintainability, and testability of our codebase.

golaundry/
├───.github
│   └───workflows
├───bin
├───cmd
│   └───golaundry
│   
├───internal
│   ├───customers
│   ├───items
│   ├───transactions
│   ├───transitems
│   └───users
├───pkg
│   ├───database
│   ├───middlewares
│   ├───models
│   ├───routes
│   └───utils
└───servers.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages