An open API service indexing awesome lists of open source software.

https://github.com/zspecza/traffic-control

:vertical_traffic_light: Get a grip on staging
https://github.com/zspecza/traffic-control

Last synced: about 1 month ago
JSON representation

:vertical_traffic_light: Get a grip on staging

Awesome Lists containing this project

README

          

# traffic-control
:vertical_traffic_light: Get a grip on staging

## Concept

This adds a bar to the top of a website hosted on Netlify that uses the Github and Netlify APIs to visually communicate information about the staging environment and allow one-click production deploys. Here are some mockups of the concept:

![When staging is far beyond production](/concept/staging-bar--ahead.png?raw=true)
![When staging is in sync with production](/concept/staging-bar--synchronized.png?raw=true)
![When staging has diverged behind production](/concept/staging-bar--diverged.png?raw=true)
![When the user is unauthorized to view changes or deploy](/concept/staging-bar--unauthorized.png?raw=true)

## Installation

You can grab the code from NPM:

```sh
$ npm i traffic-control -S
```

Or from NPM CDN:

```html

```

## Usage

The easiest way to get set up is by doing the following:

First, load Netlify's OAuth helpers before your closing `