Skip to content

crowbar-com-br/corew_rest_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corew_rest_api

REST API for the Corew project

Implementation

Dependencies

  • python3
  • python-virtualenv
  • python-pip

Installation

On your terminal:

  1. Create a VirtualEnv:
$ virtualenv corew_rest_api/
  1. Go to the env folder:
$ cd corew_rest_api/
  1. Change your source:
$ source bin/activate
  1. Clone the repository:
$ git clone https://github.com/crowbar-com-br/corew_rest_api.git
  1. Go to the project folder:
$ cd corew_rest_api/
  1. Install the necessary packages:
$ pip install -r requirements.txt

Usage

On your terminal:

  1. Go to the src folder:
$ cd src/
  1. 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__

About

REST API for the Corew project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages