-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Add a tutorial about how to create a connector
- Loading branch information
Showing
11 changed files
with
734 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Development | ||
|
||
## Run | ||
|
||
A docker-compose contains all the stuff required to launch the service. | ||
|
||
Currently, the service use MongoDB as database, and it takes few seconds to start and is not ready when the payments service try to connect to him. | ||
You can start MongoDB before and wait before start payments service using two terminal : | ||
``` | ||
docker compose up mongodb # Run on first terminal | ||
``` | ||
and | ||
``` | ||
docker compose up payments # Run on second terminal | ||
``` | ||
|
||
Tests can be started regularly using standard go tooling, just use : | ||
``` | ||
go test ./... | ||
``` | ||
|
||
## Develop a connector | ||
|
||
Want to develop a connector? [Follow this link](./tuto-connector.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "payin", | ||
"reference": "001", | ||
"status": "succeeded", | ||
"asset": "USD", | ||
"initialAmount": 100 | ||
} |
Oops, something went wrong.