GithubHelp home page GithubHelp logo

bmorelax / shunter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from springernature/shunter

0.0 0.0 0.0 996 KB

A Node.js application built to read JSON and translate it into HTML

License: GNU Lesser General Public License v3.0

Makefile 0.10% JavaScript 98.34% HTML 0.56% CSS 0.99% Shell 0.02%

shunter's Introduction

Shunter

Shunter is a Node.js module built to read JSON and translate it into HTML.

It helps you create a loosely-coupled front end application which can serve traffic from one or more back end applications โ€” great for use in multi-language, multi-disciplinary teams, or just to make your project more flexible and future-proofed.

Shunter does not contain an API client, or any Controller logic (in the MVC sense). Instead, Shunter simply proxies requests to a back end server, then:

  1. If the back end wants Shunter to render the response, it returns the application state as JSON, served with a certain HTTP header. This initiates the templating process in Shunter.
    Diagram of Shunter intercepting a JSON backend reply

  2. If the back end wishes to serve the response, it omits the header and Shunter proxies the request back to the client.
    Diagram of Shunter proxying a backend reply

  3. Shunter is also able to serve resources like CSS, JS, or images bundled with the templates as part of your application.
    Diagram of Shunter serving a bundled asset

NPM version Node.js version support Build status LGPL-3.0 licensed

Key Features

  • Allows the creation of templates loosely coupled to the underlying back end applications.
  • Enables multiple back end applications to use the same unified front end.
  • Makes full site redesigns or swapping out back end applications very easy.
  • Completely technology-agnostic; if your application outputs JSON, it can work with Shunter.
  • Asset concatenation, minification, cache-busting, and other performance optimisations built-in.
  • Can output any type of content you like, e.g. HTML, RSS, RDF, etc.
  • Well-tested and supported, serving Scientific American as well as many high-traffic sites across the Springer Nature portfolio.

Getting Started

You can find all the details about how to use Shunter in our documentation. If you're new to Shunter, we recommend reading the Getting Started Guide. This will teach you the basics, and how to create your first Shunter-based application.

Requirements

Shunter requires Node.js 10+ to run. You can find instructions for Windows, macOS and Linux below.

See the Getting started documentation for more information on Shunter's requirements.

Windows

On Windows 10, download a pre-built package from the Node.js website.

macOS

To install Node.js you can use the Node Version Manager (nvm) tool:

nvm install node

Alternatively, you can install the required dependency using Homebrew:

brew install node

You can also download pre-built packages from the Node.js website.

Linux

To install Node.js you can use the Node Version Manager (nvm) tool:

nvm install node

Depending on your flavour of Linux, you may also be able to use a package manager to install the required dependency.

Alternatively, download pre-built packages from the Node.js website.

Support and Migration

We maintain a support guide which documents the major versions and their support levels.

We aim to support old major versions of Shunter for 6 months after a new major version is released. This means that security issues and bugs will be fixed whenever feasible.

If you'd like to know more about how we support our open source projects, including the full release process, check out our support practices document.

If you're migrating between major versions of Shunter, we maintain a migration guide to help you.

Contributing

We'd love for you to contribute to Shunter. We maintain a guide to help developers get started with working on Shunter itself. It outlines the structure of the library and some of the development practices we uphold.

We also label issues that might be a good starting-point for new developers to the project.

License

Shunter is licensed under the Lesser General Public License (LGPL-3.0).
Copyright ยฉ 2015, Springer Nature

shunter's People

Contributors

josebolos avatar moddular avatar rowanmanning avatar andrewmee avatar jpw avatar sky-jack avatar tavvy avatar umaar avatar hollsk avatar dotcode avatar mplatt avatar alexkilgour avatar debugwand avatar samzilverberg avatar cazwazacz avatar sonniesedge avatar j1mr10rd4n avatar johnollier avatar juanbrujo avatar zanonnicola avatar prayagverma avatar anibe 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.