Coder Social home page Coder Social logo

x-node's Introduction

x-node

项目搭建

  1. 安装koa
    • npm i koa -S
  2. 初始化package.json
    • npm init
    • package.json中scripts上添加启动脚本
  3. 模板pug
    • 安装模板pug npm i pug -S
    • 安装koa-views npm i koa-views -S
    • 使用参照index.js
  4. 安装npm install koa-body koa-static2 koa2-cors -S
  5. 安装npm install --save-dev babel-core babel-register babel-polyfill babel-loader babel-preset-env babel-preset-stage-0 babel-plugin-transform-runtime
  6. 安装koa-router
  7. 安装require-directory
  8. 在vscode下调试koa代码
  9. 数据库用本地存储,用lowdb就可以
  10. RBAC基于角色的全新访问控制:https://www.cnblogs.com/leestar54/p/5342665.html
    • 表字段参照文章中的字段

x-node's People

Contributors

garsonguo 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.