https://github.com/ekovv/ewallet
https://github.com/ekovv/ewallet
algorithms docker gin golang postgresql rest-api server
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ekovv/ewallet
- Owner: ekovv
- License: mit
- Created: 2024-01-21T21:21:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T13:23:52.000Z (over 2 years ago)
- Last Synced: 2024-02-19T14:28:29.044Z (over 2 years ago)
- Topics: algorithms, docker, gin, golang, postgresql, rest-api, server
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eWallet

# π² Service on Go(Gin) for implementing a payment system transaction processing system.
# π Endpoints
```http
POST /api/v1/wallet
- Ρreate wallet
POST /api/v1/wallet/:walletId/send
- transcations
GET /api/v1/wallet/:walletId/history
- history
GET /api/v1/wallet/:walletId
- status
```
# π΄ββ οΈ Flags
```
a - ip for REST -a=host
d - db connection string -d=connection string
s - salt -s=your_salt
```
# π§© Config
```json
{
"host": "localhost:8080",
"dsn": "postgres://bestuser:bestuser@localhost:5432/your_db_name?sslmode=disable",
"salt": "your_salt"
}
```
# π For working with Docker
-Build postgres
```
docker run --name ewallet-pg -p 4999:5432 -e POSTGRES_USER=username -e POSTGRES_PASSWORD=password -e POSTGRES_DB=db_name -d postgres:13.3
```
-Run
```
docker run --name your-app-name -p host-port:container-port -d your-app-image
```