{"id":15061758,"url":"https://github.com/aalug/bank-go","last_synced_at":"2026-01-02T06:04:30.605Z","repository":{"id":177110298,"uuid":"648277017","full_name":"aalug/bank-go","owner":"aalug","description":"Bank API built in Go and Gin","archived":false,"fork":false,"pushed_at":"2023-08-03T18:51:58.000Z","size":7055,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T02:15:02.735Z","etag":null,"topics":["api","gin","go","golang","postgres","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aalug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-01T15:42:16.000Z","updated_at":"2023-07-08T04:33:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"afd9ad9f-a402-4a72-8f94-93daafe83718","html_url":"https://github.com/aalug/bank-go","commit_stats":null,"previous_names":["aalug/bank-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fbank-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fbank-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fbank-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fbank-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aalug","download_url":"https://codeload.github.com/aalug/bank-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243723242,"owners_count":20337339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","gin","go","golang","postgres","rest-api"],"created_at":"2024-09-24T23:24:45.904Z","updated_at":"2026-01-02T06:04:25.567Z","avatar_url":"https://github.com/aalug.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Bank\n\n### App built in Go 1.20\n\n## The app uses:\n- Postgres\n- Docker\n- [Gin](https://github.com/gin-gonic/gin)\n- [golang-migrate](https://github.com/golang-migrate/migrate)\n- [sqlc](https://github.com/kyleconroy/sqlc)\n- [testify](https://github.com/stretchr/testify)\n- [PASETO Security Tokens](github.com/o1egl/paseto)\n- [jwt-go](https://github.com/dgrijalva/jwt-go)\n\n## Getting started\n1. Clone the repository\n2. Go to the project's root directory\n3. Rename `app.env.sample` to `app.env` and replace the values\n4. Run in your terminal:\n    - `docker-compose up --build` to run the containers\n5. Now everything should be ready and the server running on `SERVER_ADDRESS` specified in app.env\n\n## Testing\n1. Run the containers (database container is sufficient)\n2. Run in your terminal:\n    - `make test`\n   or\n    - `make test_coverage p={PATH}` - to get the coverage in the HTML format - where `{PATH}` is the path to the target directory for which you want to generate test coverage. The `{PATH}` should be replaced with the actual path you want to use. For example `./api`\n   or\n    - simply use `go test` commands\n\n## API Endpoints\n#### Users (only endpoints that do not require authentication)\n - `/users` - handles POST requests to create users\n - `/users/login` - handles POST requests to log in users\n - `/tokens/renew` - handles  POST requests to renew the access tokens\n\n### Accounts\n- `/accounts` - handles POST requests to create accounts\n- `/accounts` - handles GET requests to get all accounts\n- `/accounts/{id}` - handles GET requests to get account details\n- `/accounts/{id}` - handles DELETE requests to delete an account\n\n### Transfers\n- `/transfers` - handles POST requests to transfer money from one account to another\n\n## Documentation\n### API\nAfter running the server, the API (HTTP gateway) documentation \ncan be found at http://localhost:8080/docs/\n\n### Database\nThe database's schema and intricate details can be found on \ndedicated webpage, which provides a comprehensive overview \nof the data structure, tables, relationships, and other essential \ninformation. To explore the database further, please visit\nthis [dbdocs.io webpage](https://dbdocs.io/aalug/bank_go).\nPassword: `bankgopassword`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalug%2Fbank-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faalug%2Fbank-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalug%2Fbank-go/lists"}