Skip to content

nekocode/tornaREST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tornaREST

Description

TornaREST is a simple RESTful Web Service build with Tornado Web Server.It's a demo and a base framework for learning how to build a web service provides RESTful API.

Some Detail

How to use Python to build a RESTful Web Service

Run server

  • Edit config.py in the project root path:
  • Run init_db.py at first time to create nesscery data in mongodb
  • Run server.py

API response format

{
    'code': code,
    'msg': msg,
    'data': data
}

Features

  • Using RESTful API
  • Using tornado
  • Using mongodb
  • Using redis

About

A simple RESTful Web Service built with Tornado.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages