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.
- Authentication and Authorization
- JWT Web Token
- CRUD Vehicle
- CRUD Category
- CRUD History
- Solid Principle
- Search Product Name
- Sort Product Name, Category, Date Update, and Price order by ASC or DESC
- Install the Golang and GO Environment
https://golang.org/doc/install
- Clone the repository
git clone git@github.com:wsaefulloh/cashier-backend.git (go get)
- 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
- Build the app
go build
- Run the app
go run main.go serve
- You are all set!
View the website at: http://localhost:8080