https://github.com/ashishjuyal/banking
Course files
https://github.com/ashishjuyal/banking
golang gorilla-mux hexagonal-architecture jwt jwt-authentication microservices rbac-roles
Last synced: 4 months ago
JSON representation
Course files
- Host: GitHub
- URL: https://github.com/ashishjuyal/banking
- Owner: ashishjuyal
- Created: 2020-11-20T05:23:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-11T09:18:24.000Z (about 4 years ago)
- Last Synced: 2024-06-18T17:17:57.085Z (almost 2 years ago)
- Topics: golang, gorilla-mux, hexagonal-architecture, jwt, jwt-authentication, microservices, rbac-roles
- Language: Go
- Homepage:
- Size: 637 KB
- Stars: 94
- Watchers: 4
- Forks: 74
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# banking
##### Run `./start.sh` to download the dependencies and run the the application
To run the application, you have to define the environment variables, default values of the variables are defined inside `start.sh`
- SERVER_ADDRESS `[IP Address of the machine]`
- SERVER_PORT `[Port of the machine]`
- DB_USER `[Database username]`
- DB_PASSWD `[Database password]`
- DB_ADDR `[IP address of the database]`
- DB_PORT `[Port of the database]`
- DB_NAME `[Name of the database]`
# mysql database
You can use any one of the following procedure to make a database instance, and make the changes to your `start.sh` file accordingly
1. `docker-compose.yml` file. This contains the init script to generate and tables and insert the default data. You just need to bring the container up
To start the docker container, run the `docker-compose up` inside the `resources/docker` folder
2. `resources/database.sql` this contains the SQL for generating the tables. In case you dont want to use the docker-compose file you can use this file to generate tables and insert the default data
# mocks generator
`./generate-mocks.sh`
# run unit tests
`./run-tests.sh`