wsaefulloh / cashier-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cashier App Backend

Golang.jpg

More about Golang

Built With

Golang PostgreSQL Redis

Description

This backend application is used by the user to record incoming orders and manage products. In this application, users can display products, add products, delete products, edit products, and calculate the total price of an order. This application is built with Golang using the gorilla/mux package for routing. The databases used in this application are PostgreSQL and Redis for the caching process.

Architecture

Golang.jpg

Feature

  • Authentication and Authorization
  • JWT Web Token
  • CRUD Product
  • CRUD Category
  • CRUD History
  • Solid Principle
  • Search Product Name
  • Sort Product Name, Category, Date Update, and Price order by ASC or DESC

Installation Steps

  1. Install the Golang and GO Environment
https://golang.org/doc/install
  1. Clone the repository
git clone git@github.com:wsaefulloh/cashier-backend.git (go get)
  1. Add .env file at root folder project
DB_HOST=your_db_host
DB_USER=your_db_user
DB_PASS=your_db_pass
DB_NAME=your_dbname
REDIS_HOST=your_redis_host
  1. Build the app
go build
  1. Permission app
chmod +x ./go-solid-principle
  1. Run the app
./go-solid-principle serve
  1. You are all set!
View the website at: http://localhost:8080

End Point

You can see all the end point here

About


Languages

Language:Go 99.3%Language:Dockerfile 0.3%Language:Makefile 0.2%Language:Shell 0.1%