Giter Club home page Giter Club logo

koa2-example's Introduction

koa2-example

自用koa2项目模板,支持服务的基础功能,可在模板上进行拓展

第三方包

  1. koa-router (url路由管理)
  2. koa-bodyparser (http请求体解析)
  3. node-schedule (nodejs定时任务)
  4. mysql (mysql数据库操作)
  5. mongodb (mongodb数据库操作)
  6. litedb (数据在本地存储和读取,快捷使用不用配置数据库)
  7. socket.io (websocket功能)

数据库

  1. mysql
  2. mongodb
  3. localFile(本地存储)

web安全

  1. CSRF
  2. XSS
  3. SQL注入 (sql语句不要使用字符串拼接,要使用占位符?,内部会自动调用connection.escape方法对参数进行编码)

快速、简单的koa接口服务

  • 直接在本地读写数据不用连接数据库(不用搭建数据库,也不用配置,可以快速的启动)
  • 可选的连接数据库,读写本地及mongodb使用的api保持一致(mongodb)

koa2-example's People

Contributors

superbigz avatar zyhahaha avatar

Watchers

 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.