Angular 2 and Hexo. Static Meets Dynamic For the Best of Both Worlds! Copyright 2016 Code Career Academy

Similar documents
Learn to Code with C#

P a g e 1. Danish Technological Institute. Scripting and Web Languages Online Course k Scripting and Web Languages

Full Stack Web Developer Nanodegree Syllabus

Developing ASP.NET MVC 5 Web Applications

A Motivating Example: Building a Static Website

Production Registration System 2.0

20486-Developing ASP.NET MVC 4 Web Applications

Software Development I

Ionic Tutorial. For Cross Platform Mobile Software Development

Information Brochure Information Brochure. An ISO 9001:2015 Institute. ADMEC Multimedia Institute. Web Master Plus. Designing Development Promotion

& Free.

MOBILIZE YOUR ENTERPRISE WITH TELERIK SOLUTIONS

Course 1: Microsoft Professional Orientation: Front-End Web Developer

ASP 5 Workshop. Getting Started. AmmonsOnline.com

What s New in XAML Q Release

Web Development for Dinosaurs An Introduction to Modern Web Development

FROM VSTS TO AZURE DEVOPS

Azure DevOps. Randy Pagels Intelligent Cloud Technical Specialist Great Lakes Region

Course 1: Microsoft Professional Orientation: Front-End Web Developer

Developing ASP.NET MVC 4 Web Applications

When learning coding, be brave

welcome to BOILERCAMP HOW TO WEB DEV

Using Node-RED to build the internet of things

Programming Fundamentals of Web Applications

Lecture 14. Moving Forward 1 / 23

Keeping Rails on the Tracks

Developing ASP.NET MVC 5 Web Applications

Writing your first Web Data Connector

FULL STACK FLEX PROGRAM

Using and Developing with Azure. Joshua Drew

Stencil: The Time for Vanilla Web Components has Arrived

Evaluation Guide for ASP.NET Web CMS and Experience Platforms

Software Engineering Immersive Syllabus & Program Guide

JavaScript and MVC Frameworks FRONT-END ENGINEERING

Playing Outside Your Sandbox INTERACTING WITH OTHER SYSTEMS USING SHAREPOINT BCS

Vb Net Tutorial For Beginners Visual Studio 2010 Create Web Service

COURSE 20486B: DEVELOPING ASP.NET MVC 4 WEB APPLICATIONS

20486 Developing ASP.NET MVC 5 Web Applications

Presented by. Dheepa Iyer Managing Consultant. Commissioned for. Reston SharePoint User Group. SharePoint Framework. May 2017

20486: Developing ASP.NET MVC 4 Web Applications (5 Days)

Frontend UI Training. Whats App :

What is Node.js? Tim Davis Director, The Turtle Partnership Ltd

Modern SharePoint and Office 365 Development

Ten interesting features of Google s Angular Project

FULL STACK FLEX PROGRAM

Developing ASP.NET MVC 4 Web Applications

today what is this course about? what is this course about? Welcome to CSC309! Programming on the Web APRIL 05

Developing ASP.NET MVC Web Applications (486)

Mobile Web Appplications Development with HTML5

Boldface numbers indicate illustrations, code listings, and tables.

Programming School for 21 st Century. syllabus MOBILE BACKEND DEVOPS

About Me. Name: Jonathan Brown. Job: Full Stack Web Developer. Experience: Almost 3 years of experience in WordPress development

20486C: Developing ASP.NET MVC 5 Web Applications

Tools. SWE 432, Fall Design and Implementation of Software for the Web

Profound.js. Future of open source development on IBM i. Alex Roytman Profound Logic

Developing Microsoft SharePoint Server 2013 Core Solutions

FULL STACK FLEX PROGRAM

Reading Writing Speaking Reading Writing Speaking. English Intermediate Intermediate Elementary Intermediate Intermediate Elementary

Course 20488A: Developing Microsoft SharePoint Server 2013 Core Solutions

Windows Azure Mobile Services

Full Stack boot camp

Cisco Spark Widgets Technical drill down

React(.js) the Domino Way High-Performance Client for Domino. Knut Herrmann

30 th September 2017 Milan

Cloud platforms T Mobile Systems Programming

20486: Developing ASP.NET MVC 4 Web Applications

LEARN JAVA FOR WEB DEVELOPMENT

FULL STACK FLEX PROGRAM

Getting Started with ReactJS

Building OSM based web app from scratch

Human-Computer Interaction Design

Thank You Sponsors! GOLD SILVER BRONZE / PRIZES

Keeping Rails Applications on Track with Brakeman. Justin RailsConf 2012

The Now Platform Reference Guide

Developing Microsoft SharePoint Server 2013 Core Solutions

Developing Microsoft SharePoint Server 2013 Core Solutions

Full Stack Developer with Java

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum

mismatch between what is maybe possible today and what is going on in many of today's IDEs.

JAVASCRIPT JQUERY AJAX FILE UPLOAD STACK OVERFLOW

FULL STACK FLEX PROGRAM

Quick Desktop Application Development Using Electron

MS 20488: Developing Microsoft SharePoint Server 2013 Core Solutions Duration: 5 Days Method: Instructor-Led

Examples of Our Work

Developing Microsoft SharePoint Server 2013 Core Solutions

Ingress Kubernetes Tutorial

70-486: Developing ASP.NET MVC Web Applications

Course 20486B: Developing ASP.NET MVC 4 Web Applications

Goran Halusa. Summary. Experience. Web Developer at Quotient

Getting started with Tabris.js Tutorial Ebook

Tools of the Trade Web Development at Fairfax Media

SharePoint 20488: Developing Microsoft SharePoint Server 2013 Core Solutions. Upcoming Dates. Course Description. Course Outline

Git and GitHub. Dan Wysocki. February 12, Dan Wysocki Git and GitHub February 12, / 48

,

Visual Studio Course Developing ASP.NET MVC 5 Web Applications

ASP.NET MVC Training

Online. Course Packet PYTHON MEAN.NET

Think Small to Scale Big

learn programming the right way

JAVASCRIPT FOR BEGINNERS: The Ultimate Beginners Crash Course To Learn Javascript Quickly And Easily By Adam Vardy

Transcription:

Angular 2 and Hexo Static Meets Dynamic For the Best of Both Worlds!

Who am I? Jeff Ammons Microsoft MVP Pluralsight Author CEO/Chief Instructor at Code Career Academy 25 Years Professional Experience in Software

Full-Stack Node.js Microsoft SQL

What is a Static Website Generator? Store content as text files of Markdown and YAML

Sample Post Format

Sample Post Format YAML

Sample Post Format YAML Markdown

Sample Post Format Rendered HTML Output YAML Markdown

What is a Static Website Generator? Store content as text files of Markdown and YAML Run processor locally to convert to HTML files

What is a Static Website Generator? Store content as text files of Markdown and YAML Run processor locally to convert to HTML files Version with Git

What is a Static Website Generator? Store content as text files of Markdown and YAML Run processor locally to convert to HTML files Version with Git Deploy with Git

What is a Static Website Generator? Store content as text files of Markdown and YAML Run processor locally to convert to HTML files Version with Git Deploy with Git Serve plain files via any web server

Why Would I Want One? Speed Scalability Reliability Version Control Tools Zero Lock-in Lower Attack Surface

When does it make sense? Primarily content site Blog Brochure-ware Site

When does it NOT make sense? Everything else It s not called a General Purpose Site Generator Unless Rich client (single page app) Separate API

Traditional CMS: Writing

Traditional CMS: Writing

Traditional CMS: Writing

Traditional CMS: Reading

Traditional CMS: Reading

Traditional CMS: Reading

Traditional CMS: Reading

Traditional CMS: Reading

Static Site Generator: Writing

Static Site Generator: Writing

Static Site Generator: Writing

Static Site Generator: Generating

Static Site Generator: Generating

Static Site Generator: Generating

Static Site Generator: Generating

Static Site Generator: Generating

Static Site Generator: Publishing

Static Site Generator: Publishing

Static Site Generator: Publishing

Static Site Generator: Reading

Static Site Generator: Reading

Static Site Generator: Reading

Static Site Generator: Scaling

Static Site Generator: Scaling

Static Site Generator: Scaling

Common Post Format YAML Markdown

YAML YAML Ain't Markup Language YAML is a human friendly data serialization standard for all programming languages. Source: yaml.org

Markdown Markdown is a text-to-html conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). Source: http://daringfireball.net/projects/markdown/

Sample Post Format

Sample Post Format YAML

Sample Post Format YAML Markdown

Sample Post Format Rendered HTML Output YAML Markdown

Hexo Prerequisites Node.js Npm Git Text editor

Which Text Editor Should I Use? Sublime Text Visual Studio Code Atom Notepad++ Vim Emacs [Insert any other editor you like here]

So basically Vim Or you re wrong

Just Kidding! It s really Emacs or nothing

But seriously They are just text files Use whatever makes YOU happy

So Which Generator Should I Use? Which programming language makes you happy? Does the generator have enough critical mass? Developers Extensions Themes

https://www.staticgen.com/

Hexo Super simple Fast Easy to work with JavaScript Pick a generator that works with a language you like!

Super Easy Install npm install hexo-cli -g

Create a New Blog hexo init npm install

Create a New post hexo new My New Post hexo new post My New Post

Test Blog Locally hexo server

Generate Blog for Publishing hexo generate

Just Enough Git git init git add. git commit m My commit message git push origin master

Where Can I Deploy my Blog? GitHub Pages Azure Web App Windows Server Linux Server Raspberry Pi Any web server

For Full Instructions Check out my Pluralsight course! Build a Better Blog with a Static Site Generator https://www.pluralsight.com/courses/static-site-generator-build-better-blog

How About the Dynamic Bits?? Hexo Widgets UI Elements supported by many themes Angular 2 Components are a nice fit React is also great jquery and Vanilla JS also! Pick what works for you (like all my other advice!) Keep the static bits static and the dynamic bits dynamic!

Dynamic Widget

Seasoning Dynamic widgets should be the salt and pepper on static content sites Don t over do it! Otherwise it was never really a static content site

Where can I get dynamic content? REST APIs Public APIs Your own API sites Pre-gen JSON files Pre-gen HTML fragment

Example Widget/Component Sources Meetup.com

Example Widget/Component Sources MySite.com Node.js Ruby on Rails ASP.NET

Example Widget/Component Sources OAUTH Secure the API not the site MySite.com Node.js Ruby on Rails ASP.NET

Resources https://hexo.io/ https://www.staticgen.com/ https://www.pluralsight.com/courses/static-site-generator-buildbetter-blog http://ammonsonline.com/top-5-reasons-to-blog-with-a-static-filegenerator/

Contact Info https://www.pluralsight.com/authors/jeff-ammons Company: https://codecareeracademy.com Email: jeffa@codecareeracademy.com Twitter: jeffa00 Linked-In: jeffammons Blog: http://jeffa.tech User Group: http://ggmug.com

Demo