Giter VIP home page Giter VIP logo

hawk-eye's Introduction

Hawk-eye: 小型前端监控系统,PuppeteerJS + ThinkJS + VueJS

Usage

  1. npm i
  2. npm start

监控系统

  • 通过Puppeteer,定时爬取被监控站点,如果有异常则保存截图至 /data/err
  • 创建一个后台Server,为定时脚本提供API,记录成功or失败的情况
  • server提供api,可以查询所有的监控记录

运行说明

1. PuppeteerJS: 定时脚本,爬取被监控对象的状态

/scripts/monitor-pp.js

2. ThinkJS+MongoDB: Restful API

  • 使用ThinkJS创建一个简单的RestFUl API服务
  • 文档: https://thinkjs.org/zh-cn/doc/3.0/rest.html#toc-b15
  • 安装2.0脚手架:npm install -g thinkjs@2
  • 初始化项目:thinkjs new hawk-eye
  • 创建restful api:thinkjs controller home/monitor -r
  • mongod: 启动mongodb服务
  • mongo: 启动mongodb客户端

3. 运行结果

hawk-eye's People

Contributors

zhentaoo avatar

Watchers

 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.