The API simulator project replicates API integration responses, primarily Truepill and Thriftywhite. It is designed to expedite testing and debugging within our system.
List any prerequisites or dependencies required to run your project. Include links or installation instructions if needed.
-
Clone the repository:
git clone git@github.com:sarweshmaharjan/api-simulator.git cd api-simulator -
Start the project
make run #To create docker instance of postgres. make update-go #To set up go version and install
-
Configure CAPI:
- Set "truepill.apiUrl" to "http://localhost:9999".
- Ensure feature.IsCopayCallbackEnabled() is set to true for copay callback functionality.
├── adrs
│ └── index.md
├── api
│ ├── handler.go
│ └── truepill.go
├── common
│ └── common.go
├── config
│ └── config.go
├── docker-compose.yml
├── Dockerfile
├── go.mod
├── go.sum
├── main.go
├── Makefile
├── README.md
├── storage
│ └── db.go
└── types
└── truepill.go