Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanyu90221/gobank
go implement a bank service with postgresql as data store
https://github.com/yuanyu90221/gobank
Last synced: 1 day ago
JSON representation
go implement a bank service with postgresql as data store
- Host: GitHub
- URL: https://github.com/yuanyu90221/gobank
- Owner: yuanyu90221
- Created: 2023-01-20T04:55:30.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T15:03:06.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T17:04:09.262Z (7 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gobank
use golang to implement a bank service with postgresql as datastore
## config
use github.com/joho/godotenv/autoload as config loader
which with following setup in the configuration .env
| property name | description |
|----------------|----------------|
| DB_USER | database user |
| DB_PASSWD | database password |
| DB_HOST | database hostname |
| DB_PORT | database port |
| DB_NAME | database name |
| PORT | server serve port |### pg driver
use github.com/lib/pq as driver library
### Makefile
for better run and test
use makefile for build and test
```makefile
build:
@go build -o bin/gobankrun: build
@./bin/gobanktest:
@go test -v ./...
```