Code Monkey home page Code Monkey logo

project's Introduction

目前后端分为8个主要模块,分别是管理员、位置、用户、分类、商品、购物车、订单、文件。接下来会随着编码进行更新。 每个模块文档格式如下:

  1. 模块名
  2. 数据库设计(前端人员不用看,这个是后端看的)
  3. api详情列表(ajax的api均为form表单提交,json返回;常规api后期再补上)
  4. 错误码(包含局部错误码(<0)与全局错误码(>0),局部错误码须写明错误状态描述,全局错误码不用写明,具体参考附录的全局错误码表;0表示成功状态,一般不会返回提示信息,但某些api可能会返回具体数据;)
  5. 具体api文档在__非管理页__、管理页 issue中。

环境安装:

python2.7, pip

pip install -r requirements.txt

然后新建project/instance/文件夹,创建两个文件__init__.py, config.py

config.py内容如下:

# -*- coding: utf-8 -*-
# config for db/key, etc -- private & personal
DEBUG = True
SECRET_KEY = 'your own scret key'
SQLALCHEMY_DATABASE_URI = 'mysql://username:password@ip/dbname'

project's People

Contributors

hayespan avatar 54017 avatar dengal3 avatar jayjiahua avatar raymond-wong avatar chrishan17 avatar

Watchers

Shawn Dai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.