GithubHelp home page GithubHelp logo

monitor's Introduction

Local Monitoring Tool

This tool will try to load some specific URLs from javscript within the browser. If successful, it will report either the content of the page that is returned, or simply that the result was successful. If not successful, an error message will be displayed.

Installation and deployment

  1. Clone the repository to your development system
  2. In the project directory, run npm install
  3. To start a local development server, run npm run dev and a server will spin up at http://localhost:1234
  4. Make edits to whatever files you need (see "customization" below)
  5. To build files for deployment, run npm run build and files will be generated in the build directory
  6. Copy all files from your build directory to the destination server

Customization

Customization is fairly straightforward if you are familiar with Svelte applications, but if not, here are some potentially time-saving instructions:

  1. Load the src/components/App.svelte file in an editor
  2. Note that there are <Card ...> tags for each request that is produced in the output
  3. Add, remove, or modify the <Card ...> tags as you see fit
    1. The site parameter should contain the full URL to request
    2. The showResponse parameter should be "yes" if the output should should the full response from the request
  4. Save the file
  5. If you're already running the server from npm run dev then your browser will automatically reload
  6. Repeat the above until the page does what you want
  7. Run npm run build to produce distribution files for your server

CORS Note

Because the check is happening inside of your browser, and not on the server, it is subject to CORS request constraints. Unless the server you're checking has added the appropriate CORS headers, the check will likely return an error.

If you're looking for additional CORS-safe URLs, you might consider CDNs that house javascript, as they are most likely to have the correct headers set.

monitor's People

Contributors

dependabot[bot] avatar

Watchers

Owen Winkler 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.