Command Line Interface (CLI) application for store management that sells scout accessories using Golang and MySQL database. This application will facilitate users in managing important aspects of a store such as restocking product, adding staff, and sales reports.
-
Add Product
- Allows staff to add new products to the database.
- Staff will be required to enter the product name, price, and initial stock quantity.
-
Restock Product
- Allows staff to add product stock to the database.
- Staff will be asked to enter the stock of the product to be restocked.
-
Make Purchase
- Allows staff to enter sold products and the system will reduce the initial stock of the product.
- Staff can enter sold products and the system will reduce the initial stock of the product.
-
Add Staff
- Allows users to add new staff.
- The user will be asked to enter the name, email, and position of the staff to be added.
-
Sales Report
- Displays sales reports based on a certain period.
- Users can select a time period to view total sales, number of products sold, and total revenue.
-
Exit
- Exit the application. Ends the CLI application usage session.
- Golang: For CLI application development.
- MySQL: For database management.
- Clone this repository
- Add
.env
file with access to the database - Create the database with the DDL and DML provided in the migrations folder
- Run
go run main.go
- Products:
ProductID
,ProductName
,Price
,Stock
- Staff:
StaffID
,StaffName
,RoleID
- Roles:
RoleID
,RoleName
- Sales:
SaleID
,Date
,ProductID
,Total
,TotalAmount
,StaffID
- Driver (Ahmad Luhur Pakerti): Writing menu display feature code
- Navigator (Mahattir Onassis): Reviewing code and providing feedback
- Observer (Ghassani Tyas): Taking notes and documenting features