Giter Club home page Giter Club logo

node-express-html5-boilerplate's Introduction

Node HTML5 Express Boilerplate

this is my take on a node-boilerplate heavily influenced by Mathias Pettersson's node-express-boilerplate. For more information see https://github.com/mape/node-express-boilerplate

The main differences to Mathias' boilerplate are as follows:

  • This README is written in reStructuredText
  • I use sass.js as CSS extension
  • I cleaned up the code to comply with JSLint coding guidelines
  • I use the html5-boilerplate as a submodule. Many of its ressources (such as favicon or .js files) will be used.
  • The main html5-boilerplate stylesheet gets sliced into two pieces, so that you can write your own styles using sass in a seperate file. The assetmanager then compiles the sass file to css and merges it back into the original html5-boilerplate stylesheets.

Prerequisites

  • Install node.js. For more information see the node.js repo: https://github.com/ry/node
  • Install npm. Again for more information see the public repo: https://github.com/isaacs/npm
  • You can install all prerequisites by using npm install or install them manually. Have a look at package.json for the names of the neccessary modules.

Installation

Clone this repository, install all prerequisites and run the initialization script:

git clone https://github.com/mbrochh/node-express-boilerplate yourproject
cd yourproject
npm install
chmod +x bin/initproject.sh
./bin/initproject.sh node app.js
node server.js

Usage

Just start developing your website by altering public/css/styles.sass and views/index.ejs. Everytime you save your files your browser should be updated and reflect the changes. If you use node-inspector (install it via npm as well) your server will even restart automatically on changes in your node application files.

By creating a folder public/img/overlays and placing images with filenames like index.png or index-centered.png you can overlay your html with your pixel perfect layouts from photoshop and toggle it with a mouseclick. It will automativcally be toggled on filechanges as well.

node-express-html5-boilerplate's People

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.