Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/escalopa/gobank
Simple Bank API Built with golang
https://github.com/escalopa/gobank
gin golang postgresql sqlc
Last synced: about 1 month ago
JSON representation
Simple Bank API Built with golang
- Host: GitHub
- URL: https://github.com/escalopa/gobank
- Owner: escalopa
- License: mit
- Created: 2022-11-19T19:24:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-24T00:06:58.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T21:06:26.844Z (about 2 months ago)
- Topics: gin, golang, postgresql, sqlc
- Language: Go
- Homepage:
- Size: 2.5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gobank
A SAAS banking application built with Go, and PostgreSQL, To manage your bank account, and make transactions.## [LIVE API DOCS](http://37.46.128.188/gobank/docs/index.html)
## How to run
First, you need to have `docker` and `docker-compose` installed on your machine.
First we need to set the env variables, so copy the default env files to `.env` and `.env.db` files.
```bash
cp .env.example .env
cp .env.db.example .env.db
```Then, run the following command:
```bash
docker-compose up
```## Features
The applicatoin uses `paseto` for authentication.
### User
- Create a user
- Login
- Renew access token
- Upadte user### Account
- Create an account
- Get all accounts (Of the logged in user)
- Delete an account (Soft delete, Can be restored)
- Restore an account (After has been deleted)### Transaction
- Create a transaction
- Get all transactions (Of a specific account)## Tech Stack
- Gin
- PostgresSQL
- gomock## GRPC Services
The project uses GRPC besides the REST API, to communicate with db. But the GRPC are not implemented yet fully as the API.