This repository showcases FormaServe’s training capabilities and provides a simple bottle application that runs on any platform, including the IBM i.
- Provides a search input to call a webservice that gives information on cocktails
- Webservice www.thecocktaildb.com is used to provide information to the python bottle application.
Please note that you do not need to sign up to the web service.
Clone this repository to your local machine
git clone https://github.com/FormaServe/python-cocktail.git
cd python-cocktail
Before proceeding ensure you have a python virtual environment installed & in use.
See the section on Virtual Environments below.
pip install bottle requests
python index.py
Then in an internet browser, open the application at the following URL http://localhost:3638
As with all python projects, it is recommended to run this application in a virtual environment.
Follow the instructions below to get started.
If you need more information on Python Virtual Environment, check out Andy Youens's excellent PowerWire article on virtual environments, which can be found at [https://powerwire.ukpython-environments/]
Use the venv module to create a virtual environment inside the project folder. Run the following command:
python -m venv --system-site-packages .venv
Replace .venv with your preferred name for the virtual environment if you don't like our naming convensions
To activate the virtual environment, use the appropriate command based on your operating system:
.venv\Scripts\activate
source ./.venv/bin/activate
When you’re done working in the virtual environment, deactivate it:
deactivate
Remember to activate it, or recreate it, whenever you work on your project. 😊
This project is licensed under the MIT License. See the LICENSE file for details.
- FormaServe Systems Ltd - All work - FormaServe Systems Ltd
- Andy Youens - FormaServe Systems Ltd 1990 - All rights reserved.
- Nick Youens - FormaServe Systems Ltd 1990 - All rights reserved.
- Jane Youens - FormaServe Systems Ltd 1990 - All rights reserved.