Giter Club home page Giter Club logo

component-koa-et-al-boilerplate's Introduction

Component, Koa & friends boilerplate

Boilerplate for a Koa backend and a frontend built using component with emphasis on using light-weight dependencies.

The project incorporates following "features":

Server includes following examples:

  • Development environment with LiveReload and automatic reload on backend changes
  • Routing via koa-route
  • A * style server that always serves the client side code when no other files/endpoints are hit (used for client side routing without fragments)
  • Tests using mocha

Client includes following examples:

  • A component consisting purely of CSS (by coincidence, purecss)
  • Routing and "page module loading" via page.js
  • Including templates via domify
  • Template/view /w bindings via reactive

Inspired by and in part adapted from projects such as boilerplate-koa, component.io and others.

Requires following tools on PATH

  • Node >= 0.11.9
  • NPM

Running example

$ ./setup.sh
Installing tools
-- Component
-- Supervisor
-- Mocha
Installing dependencies

$ ./devel.sh
Installing dependencies
Setting environment to development
Starting application

(...)

Starting server in development mode
Application listening on port 9000.

Windows

  1. Hit setup.cmd (may need to be run as administrator as it contains npm global installs)
  2. Hit devel.cmd
  3. Success

unix and derivatives

  1. ./setup.sh
  2. ./devel.sh
  3. Success

component-koa-et-al-boilerplate's People

Contributors

sunewt avatar

Watchers

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