Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.03 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.03 KB

Introduction

The Seller mock engine config converts yaml configs into single build.json file that can be consumed by the seller mock engine through the api.

By leveraging seller-mock-config, seller mock engine can pull latest config files without need to update configs. It ensures that the seller mock engine is running with latest configs.

Repository Structure

  • /config - stores configs in yamls
  • /build
    • build.json - build output
  • app.js - code to convert yamls into build.js

Config Folder Structure

There are two types of config json

  • /build.json - All configs combined into one
  • /<domainname>.json - Contains json only specific to that domain

Steps to setup protocol servel in local environment

Prerequisites

Steps to setup the local environment

Go to project root and install dependencies

npm i

make config changes and run

node app

This will output config from config folder into build/build.json which can be retrieved using github/other api