Giter Club home page Giter Club logo

koa-sentry-bookshelf-oa's Introduction

koa2-sentry-bookshelf-oa

简介

这是一个基于koa2的OA系统,作为我自学nodejs的练习以及成果展示

使用 PostgreSql 存储业务数据
使用 mongodb 存储session
使用 bookshelf + knex 作为ORM和Query Builder
使用 Sentry 作为错误信息的收集反馈平台

目录结构和babel的配置参考了 https://github.com/17koa/koa-demo
原链接似乎已经被删掉了,这个是我fork过来的版本 https://github.com/liuyueyi1995/koa2-demo
网站的前端代码来源于我之前的一个项目 https://github.com/liuyueyi1995/oa


完成度

实现了MVC的结构,将model和route从app.js中分离出来
基本的页面跳转逻辑已经实现
登录注册以及session存储已经完成,不过还缺少如忘记密码等更进一步的功能
/waf_log页/sqlrelay_log页的查询和模糊搜索已经完成
通过where 'xxx' like 'yyy'类型的语句实现了针对日志数据的全字段的模糊搜索
通过AJAX实现搜索功能,并动态修改网页内容 实现了user_app页user_db页的多表查询


TODOs

利用AJAX实现点击每一行之后的修改时,将表格的行改成表单的形式,修改好之后,实时保存。
利用AJAX实现对表格内容的搜索,这一部分因为涉及多表查询,所以和/waf_log页的搜索逻辑不太一样。


Sentry客户端

安装并运行

  • git clone xxxx
  • cd xxx
  • npm install
  • npm build
  • npm start

通过本机的4000端口即可访问


Sentry管理端

通过访问 http://192.168.100.119:9000 进入管理端,使用超级用户的身份登录。


Sentry的安装

可以参考我写的博客 http://blog.csdn.net/liuyueyi1995/article/details/53888312

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.