8000 GitHub - jasirmuhammad/falcon-mongo-template: Project template for REST API with Falcon, MongoDB and PyPy
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jasirmuhammad/falcon-mongo-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API with Falcon, MongoDB and PyPy

Project Template for a high-performance RESTful web service in Python, using falcon-jsonify middleware and MongoEngine Object-Document-Mapper.

Setup

  • Install PyPy (or just use Python 2.7) and MongoDB
  • Check database credentials at src/settings.py
  • Install dependencies on a virtualenv:
virtualenv -p /usr/bin/pypy env
source env/bin/activate
pip install -r requirements.txt

Run Development Server

./run_server.sh

Listening at localhost:8000. Gunicorn is used as WSGI HTTP Server.

Demo routes:

  • POST /api/example {"email": "value"} create an item
  • GET /api/example return all items

Further Reading

About

Project template for REST API with Falcon, MongoDB and PyPy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.2%
  • Shell 6.8%
0