GithubHelp home page GithubHelp logo

benrlodge / node-locomotive-webkit-gulp-es6 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 43 KB

Adds front-end boilerplate to locomotive.js with Webkit, Gulp, and ES6

JavaScript 74.33% CSS 1.78% HTML 23.89%

node-locomotive-webkit-gulp-es6's Introduction

node-locomotive-webkit-gulp-es6

Front-end boilerplate for locomotive.js.

About and Overview

What you've got here is a front-end web-app starter kit built along side the Locomotive.js Express/Node framework.

To those less familiar with Locomotive.js, you could say Locomotive.js is to Node.js what Ruby on Rails is to Ruby, that is, a framework that support MVC patterns, RESTful routes, and convention over configuration.

Locomotive.js is a great project that allows you start writing node apps fast, without worrying about much boilerplate. However, it leaves the front-end up to you.

Therefore, I started this project with the same intention that Locomotive.js was for the backend, but for the the front-end.

It embraces modern development tools including Webpack, Gulp, and ES6.

Gulp, Webpack and ES6

Static assets are packaged together with Gulp and Webpack. Two javascript entry points are available, public_main for the public aspect of the website, and app_main for the app that is accessed by registering an account and logging in. Webpack enables you to write ES6 using Babel.

HTML

Locomotive.js, as with Express.js, comes preconfigured using EJS for templating, but Jade is so much better, so I'm using it here. Under the /app/views directory you will find a directory for layouts including a public_layout and an app_layout. Normal public pages are stored under app/views/pages which corresponds with the pages controller, and partials (eg footer, header) is stored under app/views/partials.

CSS

CSS is written using Stylus. A directory structure has been started for your convenience including base and layout styles, a variables file to import, and a component directory for your React components.

Fonts

Font-awesome is included in the gulp build.

Login and Registration

Includes a simple login/registration using Mongooose, and MongoDB.

node-locomotive-webkit-gulp-es6's People

Contributors

benrlodge avatar

Watchers

 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.