Giter Site home page Giter Site logo

website-2-nodejs-marko-templates's Introduction

Website 2: NodeJS Marko Templates

A website primer for Node Express using Marko as the template engine. This site is built upon Website 1: NodeJS Starter which uses Twitter Bootstrap (v3.3), Bootstrap-Dialog, JQuery, lodash, numeral and moment.

Install node

Download NodeJS and install the version for your operating system.

Install npm and bower modules

We include a script, install.sh that initializes:

  • local npm modules in directory node_modules
  • local bower modules in directory bower_components

Then it copies only the required files from bower_components/ into public/_third/, a directory we use to serve public web pages.

Run installation:

./install.sh

Run

$ node server.js

Note: Type Ctrl-C to quit the server.

Open the client web browser to url http://localhost:8080.

About Marko

Marko.js is used by eBay to build web applications. It can be integrated with Express to respond to web requests. We began using Marko in 2014 because we liked how the tag system worked to compose layouts on the server-side. We especially liked the simplicity of the include tag and that templates pre-compiled into javascript. It made for tidy code. Since 2014, Marko has evolved to render pages on both server and the client (competing with React and Angular). For this demo, we are only using Marko on the server.

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.