Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.08 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.08 KB

Sample Application Blueprint using Python, Flask

Long Term Objectives : Enterprise Grade Security, Cloud/Mobile Ready, Containerized, API Enabled, BigData Realtime Backend

Quick Start

Web/REST Application Blueprint

Components

  • Database residing in data/user.db
  • webapi_server.py is API Server serving data from user.db
  • webapp_server.py is Web Server which connects to API Server for data

Initilize the Environment.

  • Install and Activate the python 3.5 environment
    • pyenv install 3.5 env
    • source env/bin/activate
  • Install the module dependencies
    • pip install -r requirements.txt
  • Initialize the database using admin.py
    • python admin.py

Start WebAPI Server

  • python webapi_server.py 1>logs/webapi_server.log 2>&1 &
    • Note : this command sends the job into background..
  • Test if the webapi is responding

Start WebApp Server

  • python webapp_server.py 1>logs/webapp_server.log 2>&1 &
  • Test if the webapp is responding