Skip to content

rakhmad/flask-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flask RESTFul

This Python app runs using on top Python 3.6. You can install multiple Python version using asdf-vm.

Local development

Install Python plugin.

$ asdf plugin add python

Install Python 3.6.3

$ asdf install python 3.6.3

Enable Python 3.6.3 for this app only

$ cd flask-api
$ asdf local python 3.6.3

Enable virtual environment using built-in module

$ python -m venv myvirtualenv

Install all requirements

$ pip install -r requirements.txt

Run the app

$ python main.py

OpenShift Deployment

Using ephemeral Python environment in Kataconda.

oc login -u developer -p developer 

oc new-project app-demo

oc new-app python~https://github.com/rakhmad/flask-api.git --name=flask-demo

oc logs -f bc/flask-demo

oc expose svc/flask-demo

export URL="http://$(oc get route | grep flask-demo | awk '{print $2}')"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages