Table of content:
- Description
- System Design
- Create Container
- Testing Using Insomnia
E-Wallet is a system used to store money balances but not real money and use it to facilitate online transactions. In this repository two systems will be distinguished, E-Wallet system and Bank system. E-Wallet system will not record any transactions from bank, vice versa. Users who will make transactions using E-Wallet must register to the system and top up balance through the bank system.
This system developed using Golang and Fiber Web Framework.
Note:
- Top up balance from bank system will be simulated using endpoint
{{ host }}/api/balances/topup
- Copy
config.docker.example.yaml
toconfig.yaml
then edit the content based on your preferred configuration - Run docker-compose.yaml
docker-compose up --build -d
- Open http://localhost:8080
- Run migration in container
docker-compose exec api go run script/run_migration/run_migration.go
- Run seeder in container
docker-compose exec api go run script/run_seed/run_seed.go
- Import
Insomnia.json
to your Insomnia app - Change Environment based on your preference