https://github.com/iamtonmoy0/go-sales-api
A ready to use Sales API with golang,gorm and sqlite3
https://github.com/iamtonmoy0/go-sales-api
api api-client api-rest golang gorm gorm-orm sales-api sales-management sales-management-system sqlite sqlite3
Last synced: 2 months ago
JSON representation
A ready to use Sales API with golang,gorm and sqlite3
- Host: GitHub
- URL: https://github.com/iamtonmoy0/go-sales-api
- Owner: iamtonmoy0
- Created: 2024-04-04T19:51:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T02:09:08.000Z (about 2 years ago)
- Last Synced: 2024-04-14T17:24:34.436Z (about 2 years ago)
- Topics: api, api-client, api-rest, golang, gorm, gorm-orm, sales-api, sales-management, sales-management-system, sqlite, sqlite3
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Sales API Project
## Overview
This project is an API designed for managing sales-related operations. It provides endpoints to handle various aspects of sales such as cashiers, categories, discounts, orders, payments, payment types, and products.
### Features
- Cashier Management: Allows the creation, retrieval, updating, and deletion of
cashiers. Cashiers can be created with a name, email address, phone number, and password. They can also be retrieved by their cashiers. Cashiers have a name cashiers.
- Category Management: Provides functionalities to manage product categories.
- Discount Management: Enables the management of discounts on products.
- Order Management: Facilitates the creation and tracking of orders.
- Payment Management: Handles different types of payments and payment methods.
Product Management: Manages product details including stock, price, and categories.
Technologies Used
- Golang: The backend of the API is implemented using Go programming language.
- Gorm: Gorm is used as the ORM library to interact with the database.
- JSON Web Tokens (JWT): JWT is used for authentication and authorization purposes.
- SQLite:SQLite database is used to store data related to cashiers, categories, discounts, orders, payments, payment types, and products.
## Setup
Clone the repository.
Install dependencies using
```sh
go mod tidy
```
Configure the MySQL database connection in the .env file.
Run the application using go
```sh
run main.go
```