GithubHelp home page GithubHelp logo

selectedacre / bootstrap3-jade-node-express-grunt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alt-f1/bootstrap3-pug-former_jade-node-express-grunt

0.0 2.0 0.0 1.61 MB

Bootstrap 3 templated by Jade

License: MIT License

bootstrap3-jade-node-express-grunt's Introduction

bootstrap3-jade-node

Bootstrap 3 samples rendered using Jade, NodeJS, Express and Grunt

bootstrap3-jade-node-express-grunt

Install dependencies

  • install NodeJS (globally)
  • install NPM (globally)
  • install Grunt (globally)

Download the code without Git

kudos to onlinemad, he wrote a script downloading the code and generating a package.json file

The following script will

  1. create a directory named "bootstrap3-jade-node-express-grunt"
  2. create a file named “init.js" containing this script https://gist.github.com/onlinemad/6373852
  3. install the depedencies: adm-zip, request, prompt and js-beautify
  4. run the following commands

mkdir bootstrap3-jade-node-express-grunt

cd bootstrap3-jade-node-express-grunt

curl https://gist.github.com/onlinemad/6373852/raw/8439cc03c69cd171dc95a72874130b7f6a2e7c34/init.js > init.js

npm install adm-zip

npm install request

npm install prompt

npm install js-beautify

node init.js

  1. hit Enter on your keyboard :-)

  2. Fill the project information: Project name, description, version number (N.N.N), Author, Reposition (url),

    • the project name will be the directory used to store the [bootstrap3-jade-node-express-grunt] source code
  3. wait a few seconds, the download occurs in background and you don't have any visual feedback

  4. go to "How to run the app" chapter (hereafter)

Download the code using Git

How to run the app

  • Install the module using npm install command (locally, a node_modules directory will be created)
  • Start the server using the grunt command
  • open http://localhost:3001/ home page

Documentation

  • start the server using grunt

  • click on the links leading you to the Twitter Bootstrap templates translated into Jade

  • Use the *.jade files into your projects !

  • how did we convert the html into jade

    • We use html2jade to translate automatically the html into a jade file
    • Remove the characters as Jade complains as it believes it has to interpret the code =================================================
    • replace inside the jade file the path to the JS and CSS files from [Bootstrap Twitter]: ../.. with the parameter #{pathToAssets}
    • change the link to the custom made CSS made for each template stored under the bootstrap-3.0.0/examples/ directory : #{pathToSelectedTemplateWithinBootstrap}

Examples, how to open a bootstrap page

Available templates

Release History

TODOs

  • add front end test against html pages

v2014-01-08

  • Correct the chapter "Download the code without Git"

v2014-01-07

v2013-08-25

v2013-08-24

v2013-08-22

v2013-08-21

  • Twitter Bootstrap 3 is just released, it is time to convert HTML into Jade templates

License

Copyright (c) 2013 ALT-F1, We believe in the projects we work on™

Licensed under the MIT license.

bootstrap3-jade-node-express-grunt's People

Contributors

abdelkrim avatar petrvolny 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.