Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rezairfanwijaya/pos-go

This repository provides services about managing transactions
https://github.com/rezairfanwijaya/pos-go

gin gin-gonic go gorm gorm-orm mysql-database rest-api

Last synced: 4 days ago
JSON representation

This repository provides services about managing transactions

Awesome Lists containing this project

README

        

# POS system (income/expense transactions)

This repository provides services about managing transactions

## Run Locally

#### Clone the project

```bash
git clone https://github.com/rezairfanwijaya/pos-go.git
```

#### Go to the project directory

```bash
cd pos-go
```

#### Get Dependency
```bash
go mod tidy
```

#### Open the project with your favorite text editor

#### Setup ENV
##### Edit the .env.example file to .env and adjust it to the env that you will use
##### example :
```bash
DATABASE_USERNAME = "root"
DATABASE_PASSWORD = "12345"
DATABASE_HOST = "127.0.0.1"
DATABASE_PORT = "3306"
DATABASE_NAME = "pos"
DOMAIN = ":8080"
SECRET_KEY = "1213v-dhgfvh2342fved"
```

#### Run application
```bash
go run main.go
```

## Data User
##### have only one user with the following credentials
```bash
username : "admin"
password : "12345"
```

## API Documentation
[API DOCS](https://documenter.getpostman.com/view/11940636/2s93CUJWFy)