Kin ecosystem Marketplace server
Any data that appears in the repo does not reflect real partnerships or product integrations. We use real company names and products for the sole sake of mocking data to populate our SDK client.
Clone this repo, and then in a terminal:
marketplace-server> npm i marketplace-server> npm run restart
Please make sure that you follow the code conventions which are described/enforced by the IDE and tslint.
In any jetbrains based IDE (webstorm, pycharm, intellij, etc):
- Go to the Preferences > Editor > Code Style
- Click the small gears icon besides the Scheme drop down box
- Import Scheme > IntelliJ IDEA code style XML
- Select the code_style_scheme.xml file in the root of this project.
- Go to Preferences > Languages & Frameworks > TypeScript > TSLint
- Check the Enable box
- Make sure that the Search for tslint.json options is selected under Configuration file.
First compile the source:
then create the DB:
Then run the tests:
Running in Docker
To run and test using docker follow the instructions bellow:
Download docker + docker-compose for your environment.
If you DON'T have a wallet with XLM and KIN:
Run the following command to generate a
secrets/.secrets file with a pre-funded wallet:
Note that this command will overwrite any existing file
If you have a wallet with XLM and KIN:
You need to have a stellar account with funds and create a
secrets/.secrets file locally with the following content:
export STELLAR_BASE_SEED=SXXX export STELLAR_ADDRESS=GXXX
Create JWT encryption keys
will create the dir
jwt/ with random encryption keys. You can add other keys if you'd like. the keys in the public_keys dir will be exported via
Run docker servers and system tests
The supplied docker-compose.yml mounts the current code into the marketplace containers. You need to build the code locally:
make install build
Run the following command:
make up # start all services
And in a separate shell:
To stop the services