Coder Social home page Coder Social logo

todolist's Introduction

这个 demo 借助express实现了一个基本restful架构

demo中用到的模块工具介绍:

  1. grunt 任务自动管理工具
  2. bower 前端类库管理工具
  3. express nodejs的web开发框架,提供了路由控制
  4. ejs 模板引擎
  5. mongoose Mongodb的数据库模型工具
  6. async 流程控制
  7. supervisor 自动重启应用

笔记:

  1. req.query: 处理get请求,获取get请求的参数
  2. req.params: 处理类似/:xxx形式的get或者post请求,获取请求的参数
  3. req.body: 处理post请求,获取post请求体
  4. req.param(): 处理get和post请求,但是查找优先级为req.params->req.body->req.query

todolist's People

Contributors

lihang1870719 avatar

Watchers

James Cloos avatar  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.