Installation¶
Using install.sh¶
Note
This installer installs the BD DataService, CentralService, MongoDB, InfluxDB and Redis on the same machine.
Extract the package and cd into the folder**:
$ tar -xzf buildingdepot-3.#.#.tar.gz
$ cd buildingdepot-3.#.#/
Run the installer
$ ./install.sh
This will install BuildingDepot in the default installation location
/srv/buildingdepot
with the following directory structure:buildingdepot |-- CentralService - CentralService |-- DataService - DataService |-- CentralReplica - The central replica that is present at every DataService +-- venv - Python Virtual Environment
After installation please go the CentralService on port 81 of your installation and create a DataService to start off with called “ds1”. If you would like to use another name for your DataService do ensure that the name is accordingly changed in the config.py file in the DataService folder.
What’s installed¶
The following packages are installed using apt-get
openssl python-setuptools python-dev build-essential python-software-properties mongodb python-pip nginx supervisor redis-server influxdb
The following packages are installed in the python virtual environment
Flask mongoengine flask-restful Flask-HTTPAuth flask-login validate_email requests Flask-Script Flask-WTF flask-bootstrap redis influxdb pymongo
Configuration¶
The BD Installer configures BD with some default values.
The CentralService can be accessed on port 81 and the DataService on port 82.
DataService¶
To access the DataService, go to
URL - http://<host>:82
CentralService¶
To access the CentralService, go to
URL - http://<host>:81