Code Monkey home page Code Monkey logo

bridge's Introduction

๐ŸŒ‰ Bridge

Simple notice pages for your project, built with Cloudflare Workers

Demo

Bridge sits in front of your website to render simple single-page notices to your users about the status of your site.

Note from the author: I'd like to add more page types, like "Under Construction", "Coming Soon", etc. Currently, the only supported project type is "sunset", for projects that our shutting down. PRs are welcome!

Installation

First, generate a new project using Wrangler:

wrangler generate mysite-bridge https://github.com/signalnerve/bridge
cd mysite-bridge

If you haven't installed Wrangler, check out the Quick Start guide on the Workers docs!

Configuration

To configure your page, check out the config section of index.js:

const config = {
  // The name of your project
  name: "My Project",
  // An optional subtitle to explain more
  subtitle: "",
  // A URL to a blog post or tweet to learn more
  link: ""
  // The type of page to render: currently, the only supported one (and the default) is "sunset"
  type: "sunset"
};

If you need to test your site before deploying, use wrangler preview!

Deployment

When you're ready to publish your site, fill out your account details in wrangler.toml:

# The name of your project, which will be displayed in the Workers UI
name = "frontendjobs-bridge"

# The project type - don't change this unless you know what you're doing!
type = "webpack"

# The route(s) you want to serve your script on. Generally, you would want to configure
# this as `https://www.mysite.com/*` or something similar.
route = "https://www.frontendjobs.tech/*"

# Your Cloudflare Account ID (see "API Keys" section of the README)
account_id = "$myAccountId"

# Your Cloudflare Zone ID (see "API Keys" section of the README)
zone_id = "$myZoneId"

API Keys

To deploy your site, you need to find your Cloudflare API Keys. Check out the Workers docs section "Finding Your Cloudflare API Keys" to learn more!

Credits

Illustrations are provided by DrawKit under an MIT License. They're wonderful, make sure to go check the site out!

bridge's People

Contributors

kristianfreeman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.