Giter Club home page Giter Club logo

pub-gatekeeper's Introduction

pub-gatekeeper

NOTE: this repo is no longer being maintained.

pub-gatekeeper is a node express server for mediating access to pub-server generated sites.

This makes it possible to edit and publish directly from the browser, without depending on another server to save files and generate the site.

Think of it as a github pages editor and generator running inside your browser.

oauth scope

repo scope is required for read-write access to a specific github repo.

The server also asks for user:email scope so that github identities can be used for role-based authorization with ACLs. Currently all authenticated users have admin rights in the editor.

Details of the oauth2 web flow, are documented in pub-pkg-github-oauth.

configuration

To run this server yourself git clone and then npm install

Register a new github developer application here.

Make sure that you provide a redirect url of the form:

https://{your-server-name}/server/auth/github/callback

Export the following environment variables before starting the server.

export GHID={github client ID}
export GHCD={github client secret}

Additional setting such as the github timeout can be configured via pub-gatekeeper-config.js.

The server is started with the usual node server command in the project folder.

Alternatively npm install -g pub-gatekeeper and then start the server from any folder using the pub-gatekeeper command.

pub-gatekeeper's People

Contributors

jldec avatar

Watchers

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