REST API for the Corew project
- python3
- python-virtualenv
- python-pip
On your terminal:
- Create a VirtualEnv:
$ virtualenv corew_rest_api/
- Go to the env folder:
$ cd corew_rest_api/
- Change your source:
$ source bin/activate
- Clone the repository:
$ git clone https://github.com/crowbar-com-br/corew_rest_api.git
- Go to the project folder:
$ cd corew_rest_api/
- 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, if you need to use another port:
$ hug -p 8080 -f app.py
Or, in case of production:
$ gunicorn app:__hug_wsgi__