2.9 KiB
Installing Manually
Common Steps
double: installing; common_steps
Note
The below operations should take place underneath your <project>/etc folder.
Install system package dependencies (Ubuntu):
$ apt-get install python-pip python-virtualenv $ apt-get install rabbitmq-server mysql-server $ apt-get build-dep python-lxml
Clone the BillingStack repo off of Github:
$ git clone https://github.com/billingstack/billingstack.git $ cd billingstack
Setup virtualenv:
Note
This is to not interfere with system packages etc.
$ virtualenv --no-site-packages .venv $ . .venv/bin/activate
Install BillingStack and it's dependencies:
$ pip install -rtools/setup-requires -rtools/pip-requires -rtools/pip-options $ python setup.py develop
Copy sample configs to usable ones, inside the etc folder do:
$ ls *.sample | while read f; do cp $f $(echo $f | sed "s/.sample$//g"); done
Installing Central
double: installing; central
Note
This is needed because it is the service that the API and others uses to communicate with to do stuff in the Database.
See Common Steps before proceeding.
Configure the
central
service:Change the wanted configuration settings to match your environment, the file is in the etc folder:
$ vi etc/billingstack.conf
Refer to the configuration file for details on configuring the service.
Create the DB for
central
:$ python tools/resync_billingstack.py
Now you might want to load sample data for the time being:
$ python tools/dev_samples.py
Start the central service:
$ billingstack-central
Installing the API
double: installing; api
Note
The API Server needs to able to talk via MQ to other services.
See Common Steps before proceeding.
Configure the
api
service:Change the wanted configuration settings to match your environment, the file is in the etc folder:
$ vi billingstack.conf
Refer to the configuration file for details on configuring the service.
Start the API service:
$ billingstack-api