API Gateway for the Corew project
- python3
- python-virtualenv
- python-pip
On your terminal:
- Create a VirtualEnv:
$ virtualenv corew_api_gateway/
- Go to the env folder:
$ cd corew_api_gateway/
- Change your source:
$ source bin/activate
- Clone the repository:
$ git clone https://github.com/crowbar-com-br/corew_api_gateway.git
- Go to the project folder:
$ cd corew_api_gateway/
- Install the necessary packages:
$ pip install -r requirements.txt
On your terminal:
- Go to the src folder:
$cd src/
- Start the HUG server:
$hug -f app.py
Or, in case of production:
$gunicorn app:__hug_wsgi__
Or, if you have SLL:
$gunicorn --certfile=server.crt --keyfile=server.key app:__hug_wsgi__