GithubHelp home page GithubHelp logo

chaplin's Introduction

Build HTML apps from JSON APIs in no time

Chaplin maps HTML templates to API endpoints and renders them server-side.

It's great for:

  • Quickly prototyping an app from an existing JSON API.
  • Quickly shipping an non-user facing app, like an admin interface to your main app for your sales team.
  • Writing an app only using HTML, Mustache and YAML.

Installing

Like any other Ruby gem, Chaplin can be installed with

$ gem install chaplin

Or added to an existing project's Gemfile

  gem 'chaplin'

Getting started:

You can create a new project with

$ chaplin new my-app

Here is the basic structure of a Chaplin app:

- public/             # all files in there are served statically
- templates/          # HTML templates that will be rendered using Mustache
- app.yml             # The YAML mapping between API endpoints and HTML templates
- chaplin_config.yml  # The url of the API the server will connect to, and other configuration values

You can start the server either with the chaplin command, or as a Rack application.

Documentation:

  • Reference

  • chaplin-blog is an example app with a Parse backend

  • chaplin-init is a starting point with some basic front end dev tooling (gulp, zurb foundation and such)

Support

For troubleshooting or any questions about using Chaplin, hit me up on twitter @VictorMours.

Chaplin is still in its early days, so I wouldn't recommend it for user-facing production apps just yet. We've been using it for an internal app for a couple month and it does the job.

chaplin's People

Contributors

lukyvj avatar victormours avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lukyvj bu7ch

chaplin's Issues

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.