Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

quangIO/hackathon-landing

Repository files navigation

Marko Starter Demo

This repo demos the basic features of marko-starter.

Install

npm install

Starting the server

npm start

Start the server in production mode (minification enabled, etc.):

NODE_ENV=production npm start

Build a static site

Build the project in production mode:

npm run build

By default, the generated static site will be placed in dist/.

Feature Demos

Live reload

Change a file and the server will restart and the browser will refresh. Hot reload is enabled for certain files.

Components

See example components and how they can be scoped to pages or the whole site.

Routing

Learn to create routes and use route parameters.

Layouts

Learn to create components that can be passed content and include that content in their own template.

Styles and Images

Learn how to use styles within a component and how to use resources (like images) in a component.