Code Monkey home page Code Monkey logo

x-server-koa's Introduction

X-Server-Koa

启动

npm install
npm start

API

非完全Restful化

http://localhost:3030
    \_api
        \_users
            \_sign
                \_in            // post 登录
                \_up            // post 注册
                \_out           // post 退出
            \_list              // get 用户列表
            \_detail
                \_:id           // get 获取单个用户详情
            \_update
                \_:id           // post 更新单个用户
            \_remove
                \_:id           // post 删除单个用户
                \_batch         // post 批量删除用户
        \_articles
            \_add               // post 添加文章
            \_list              // get 获取文章列表
            \_detail
                \_:id           // get 获取文章详情
            \_update
                \_:id           // post 更新文章
            \_remove
                \_:id           // post 删除文章
                \_batch         // post 批量删除文章

TODO

1.数据库相关操作待完善。

2.列表接口支持分页。

3.jwt接入。

x-server-koa's People

Contributors

oxoyo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

caize

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.