Skip to content

Files

Latest commit

author
Nick Ardecky
Feb 10, 2020
f4b33c8 · Feb 10, 2020

History

History
52 lines (36 loc) · 1.95 KB

File metadata and controls

52 lines (36 loc) · 1.95 KB

zinggrid-flask-restful-crud-example

Create a REST endpoint with Python Flask Restful and have a working UI component enabling CRUD functionality in minutes!

System Requirements

  • python (3.7.2) -> (Required) Python is required for this project
  • pip (20.0.2) -> (Required) Pip is required to install python dependencies
  • flask -> The outlining REST framework to run our server. pip install flask-restful
  • pyenv -> (recommended) pyenv is recommended to manage your python versions and package dependencies.
  • pyenv-virtualenv -> (recommended) pyenv-virtualenv is recommended to keep your python (pyenv) package dependencies from leaking out.

Flask Links

  1. Flask -> https://palletsprojects.com/p/flask/
  2. API Quickstart -> https://flask-restful.readthedocs.io/en/latest/quickstart.html#

User Guide

You'll find the user guide and all documentation here

Installation Steps

  1. Set python version to 3.7.2 pyenv global 3.7.2 to set the global python version

  2. Install flask with your python versionpip install flask-restful

  3. Setup project with python setup.py develop

  4. Run project python api.py and go to localhost:5050

Localhost Links

The root UI is at http://localhost:5000/ and that file is templates/zinggrid.html

The TODO List API urls are:

The TODO List API urls are: