https://github.com/pickfire/sanic-hero-api-example
https://github.com/pickfire/sanic-hero-api-example
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pickfire/sanic-hero-api-example
- Owner: pickfire
- Created: 2018-04-04T16:46:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T16:47:23.000Z (about 7 years ago)
- Last Synced: 2025-02-10T11:45:15.216Z (3 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Python, Sanic, Peewee Rest API Example
======================================Build Restful CRUD API for a simple application using Python, Sanic and Peewee.
Requirements
------------
- python 3 > 3.5.xSetup
-----python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export DATABASE_URL=mysql+pool://user:pass@localhost/heroes
sudo python app.pyExplore Rest APIs
-----------------
The app defines following CRUD APIs.GET /heroes
You can test them using postman or any other rest client.
Learn more
----------
Check out @sean3z blog post -