Skip to content

The simplest api for flask, flask-pymongo, and flask-restful

License

Notifications You must be signed in to change notification settings

jhschwartz/flask-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-api-template

This is a template for a simple flask api using flask-restful and MongoDB.

Prereqs:

  • Python 2.7+
  • Virtual Env
  • Mongo
  • Pymongo

To get started in Terminal:

  1. git clone https://github.com/jhschwartz/flask-api-template.git
  2. cd flask-api-template
  3. virtualenv flask
  4. source flask/bin/activate
  5. pip install -r requirements.txt
  6. chmod a+x run.py
  7. ./run.py
  8. Make api calls (ex: curl https://localhost:5000/api/v1.0/todos or use Postman [reccomended])
  9. Make your own api, in app/api/api.py or by creating api files in app/api (remember to import new files in app/api/__init__.py)

About

The simplest api for flask, flask-pymongo, and flask-restful

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages