
yaml format at the separate private repository. Here you can find an example of MLS configurations.
docker-composer.ymlgit clone https://github.com/boxmls/service-mls-api -b develop
docker-compose up --build --renew-anon-volumes
All existing MLS configurations should be stored at the own private repository. Here you can find an example of MLS configurations.
MLS Configuration includes:
config.yaml)handlebars)MLS configuration is stored in YAML file. It contains all necessary MLS details, options and credentials, which are being used by major of micro-services of BoxMLS application.
It includes the following conditional sections:
All available configuration options can be found in config.yaml example.
BoxMLS stores all MLS data in two formats:
rets index ( e.g. rets/agent ).normalized ) data. The main format for all MLSs. Poller takes care of converting original MLS data to normalized. The data is stored in different indexes of Elasticsearch.MLS original data is being normalized to internal standartized format by MLS Poller Service using handlebarsjs templates. Every resource has its own handlebarsjs template, which describes standartized JSON object.
Templates are stored in /handlebars/views folder. See example here.
MLS can have up to five templates:
Helpers is the set of handlebar functions used in templates. There are two types of Helpers:
mls-api. See example handlebars/helpers.Note: common function is being re-declared by MLS custom function with the same name. E.g.: if MLS custom stringToList function will be defined it will be used instead of already existing common function with the same name.
Common and MLS Custom helper functions may have the following set of files:
helper.js. It's a common set of functions, which can be used by any handlebarsjs template.agent.js. The specific set of functions used only in agent.handlebars template.office.js. The specific set of functions used only in office.handlebars template.property.js. The specific set of functions used only in property.handlebars template.openhome.js. The specific set of functions used only in openhome.handlebars template.virtualopenhome.js. The specific set of functions used only in virtualopenhome.handlebars template.tour.js. The specific set of functions used only in tour.handlebars template.handlebars, config.yaml ). The example is available here.pm2 processes in config.yaml are disabled for now ( e.g. poller.pm2.sync-property: false ) to prevent starting pm2 processes automatically.connector.config.credentials ) and test them using Swagger UI of RETS API service.connector.config.resources ) and test them using Swagger UI of RETS API service.config.yaml, - be sure to restart the container.connector.config.resources ) RETS M.D. service can be used. It's rendering RETS meta schema.All grunt commands below belong to service-mls-api
grunt index. Indexes all MLS configurations ( they are stored in Elasticsearch )grunt extend-data. Extends MLS configurations ( they are stored in Elasticsearch ) with additional datagrunt get-field-schema. Retrieves and indexes all RETS meta fields and their schemas. It's required for Poller sync and data normalization processes.TYPE=property DEBUG=grunt,sync,ret-request grunt sync )TYPE=agent DEBUG=grunt,sync,ret-request grunt sync )TYPE=office DEBUG=grunt,sync,ret-request grunt sync )city, zipcode, etc. )If issues with indexing geojson data occurred:
city, county )Do you have any questions. Please, visit Support page for consulting and help.
Content type
Image
Digest
Size
692.4 MB
Last updated
about 6 years ago
docker pull boxmls/service-mls-api