Coder Social home page Coder Social logo

ackermann / statuside Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sykezz/statuside

0.0 1.0 0.0 336 KB

A Status Page built on Cloudflare Worker and Pages (Vue + Tailwind)

License: Apache License 2.0

JavaScript 37.54% HTML 2.26% Vue 57.26% CSS 2.94%

statuside's Introduction

Statuside

A Status Page built on Cloudflare Worker and Pages (Vue + Tailwind).
Inspired by Cachet, Statusfy, and Atlassian Statuspage.

โš ๏ธ This is still work in progress, so there might be bugs and stuff missing.

Setup

  • Create a Pages project with Vue preset.
  • Create a KV and Worker.
  • Create an Environment Variable in the worker for AUTH_SECRET with a <secret> as value for authentication.
  • Copy worker/wrangler.toml.sample to worker/wrangler.toml and add your account_id, api_token, and kv_namespaces.
  • wrangler build and wrangler publish

API Usage

Update Systems:

POST (header: Authorization: <secret>) /system

[
    {
        "name": "Website",
        "level": 1
    },
    {
        "name": "API",
        "level": 3
    },
    {
        "name": "CDN",
        "level": 4
    }
]

New Incident:

POST (header: Authorization: <secret>) /incident/new

{
    "name": "Incident Title",
    "open": true,
    "maintenance": false,
    "level": 5,
    "systems": ["api", "website"],
    "activities": [
        {
            "timestamp": "2021-10-28T14:59:02.999Z", 
            "status": "Investigating",
            "message": "Something."
        }
    ]
}

Update Incident:

POST (header: Authorization: <secret>) /incident/<YYYY-MM>/<id>

{
    "name": "New Incident Title",
    "open": false,
    "maintenance": false,
    "level": 5,
    "systems": ["api", "website"],
    "activities": [
        {
            "timestamp": "2021-10-28T14:59:02.999Z",
            "status": "Investigating",
            "message": "Something."
        },
        {
            "timestamp": "2021-10-28T15:22:13.999Z",
            "status": "Resolved",
            "message": "Fixed it."
        }
    ],
    "date": "2021-10-30",
    "timestamp": 1635619333,
    "id": "kve5iqpyijjcl8qj1g"
}

Contributing

Contributions are welcome ๐Ÿ˜„

statuside's People

Contributors

sykezz avatar azrulafiq avatar

Watchers

James Cloos 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.