Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.56 KB

README.md

File metadata and controls

47 lines (28 loc) · 1.56 KB

bottle-rack

codecov Build Status

Similar to the concept of Flask Blueprints, Bottle-rack simplifies managing multiple Bottle services. You can use Bottle-rack to manage running and developing microservices locally and later deploying as separate services.

Install & Run

git clone [email protected]:peregrinius/bottle-rack.git
cd bottle-rack

# if you want to use a virtual environment
virtualenv -p $(which python3) venv
source venv/bin/activate

pip install -r requirements.txt

python run.py

Dependencies

The only required dependency is bottle-mold, which is used to promote cleaner code in your services by removing boilerplate code from services. It includes:

  • handling CORS
  • ORM plugin configuration

Note: sqlalchemy is also provided by default but only used for demonstation purposes

Getting Started

Configuration

Configuration is managed through the config.py file, here you can setup parameters for:

  • Logging
  • CORS
  • ORM configuration
  • registering services

The config file consists of two kinds of two ways of setting values, with environment variables and as variables.

  • Environment variables should be used for values that need to be set for deploying services independently of bottle-rack
  • Variables should be used for values that are only required for running the web service using bottle-rack