GithubHelp home page GithubHelp logo

kaceo / netlify-statuskit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.87 MB

Source for status.kaceong.com (kaceo-status.netlify.com) using a static site generator

Home Page: https://status.kaceong.com

License: MIT License

JavaScript 24.03% HTML 45.28% CSS 30.69%

netlify-statuskit's Introduction

Introduction

Netlify StatusKit is a template to deploy your own Status pages on Netlify.

Netlify StatusKit Demo

Netlify StatusKit is released under the MIT License. Please make sure you understand its implications and guarantees.

Deploy to Netlify

Initial configuration

Click in the Deploy to Netlify button above to create your own site directly and push this repository to your own account. Before creating the site, Netlify will ask you to fill required environment variables listed here:

  • STATUSKIT_PAGE_TITLE - Title to show in the browser for your status site.
  • STATUSKIT_COMPANY_LOGO - URL to your company's logo.
  • STATUSKIT_SUPPORT_CONTACT_LINK - URL to a support page for your users to talk with you.
  • STATUSKIT_RESOURCES_LINK - URL to documentation for your users.

Extra configuration

After the site is created, you can modify the code as much as you want and push it to your GitHub repository. Netlify will pick up changes from there.

Reporting systems

You can add systems you want to report about to your Status page. For instance, you might want to tell your users about a status change in your CDN infrastructure but not in your API.

Go to site/config.toml and change the global systems variables. Once that's done, you'll be able to change the status of each one of those systems individually when you open or modify an incident.

Full customization

This template is based in Netlify's Victor-Hugo boilerplate. To work on it you'll need NPM installed. To download dependencies type npm run dependencies, that will check if you have Hugo installed and will download it for you if you don't. It will also run npm install for the first time to download extra dependencies. After that, you can run npm install every time you want to install packages.

Managing incidents

Incidents are plain markdown files inside the site/content/incidents directory.

Creating new incidents

Adding incidents to your status page is as simple as adding a new document to the incidents collection. Create a new incident using Hugo with a command like this:

hugo -s site new -k incidents incidents/oh-no-something-went-wrong.md

Hugo will create a new Markdown file for you with title and date based on the file name and a few predefined settings in the header. To learn more about the different severities and report, you can see more detailed examples in site/archetypes/incidents.md.

After explaining the current situation in the incident, you can just push the file to GitHub. Netlify will deploy the indicent announcement for you in a matter of seconds.

Resolving incidents

Everything will be operational again when all incidents are marked with resolved = true in the incident frontMatter:

+++
...
affectedsystems = ["API"]
resolved = true
+++

Tracking activity

When there is an update in your incident you can track activity by inserting a timestamp with the update. For example:

**Update**: We've identified the issue. {{< track "2016-11-22T14:34:00.000Z" >}}

Development

Netlify StatusKit uses NPM to manage dependencies. It also bundles a version of Hugo to work out of the box.

  1. Use npm install to download dependencies.
  2. Use npm start to start the development server.

netlify-statuskit's People

Contributors

biilmann avatar calavera avatar kaceo avatar rafaelconde 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.