Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction into Harp
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Alexander Reelsen
December 04, 2014
Technology
1
520
Introduction into Harp
A quick introduction into harp. Hold at the MNUG Meetup in Munich in December 2014
Alexander Reelsen
December 04, 2014
Tweet
Share
More Decks by Alexander Reelsen
See All by Alexander Reelsen
Elasticsearch: From Keyword Search To Data Science
spinscale
0
190
Evolving Search at an ecommerce marketplace
spinscale
0
230
The new generation of data stores
spinscale
0
280
Search Evolution - Keeping up with the hype?
spinscale
0
410
Mirror mirror... what am I typing next?
spinscale
0
500
The New Generation of Data Stores
spinscale
0
270
Elasticsearch: Distributed Search Under the Hood
spinscale
0
170
Working distributed - but how?
spinscale
0
230
Implementing a custom aws lambda runtime using Crystal
spinscale
0
860
Other Decks in Technology
See All in Technology
書籍執筆での生成AIの活用
sat
PRO
1
230
2人で作ったAIダッシュボードが、開発組織の次の一手を照らした話― Cursor × SpecKit × 可視化の実践 ― Qiita AI Summit
noalisaai
1
280
Web Intelligence and Visual Media Analytics
weblyzard
PRO
1
6.8k
メルカリのAI活用を支えるAIセキュリティ
s3h
7
5.3k
re:Inventで見つけた「運用を捨てる」技術。
ezaki
1
160
20260129_CB_Kansai
takuyay0ne
0
220
AI推進者の視点で見る、Bill OneのAI活用の今
sansantech
PRO
2
270
JuliaTokaiとしてはこれが最後かもしれない(仮) for NGK2026S
antimon2
0
130
Amazon ElastiCacheのコスト最適化を考える/Elasticache Cost Optimization
quiver
0
290
Riverpod3.xで実現する実践的UI実装
fumiyasac0921
2
350
セキュリティ はじめの一歩
nikinusu
0
1.2k
人はいかにして 確率的な挙動を 受け入れていくのか
vaaaaanquish
4
3.1k
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
Odyssey Design
rkendrick25
PRO
1
480
Believing is Seeing
oripsolob
1
44
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Paper Plane (Part 1)
katiecoart
PRO
0
3.7k
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
A Soul's Torment
seathinner
5
2.2k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
3.9k
BBQ
matthewcrist
89
10k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
420
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Transcript
Alexander Reelsen @spinscale
[email protected]
Introduction into harp
About me Developer at Elasticsearch Interested in all things scale,
search & a bit web No clue about web design likes tech meetups...
More search... Check out the Search Meetup Munich (15th Dec)
http://www.meetup.com/Search-Meetup-Munich/events/218856224/
Devcamp anyone? Like a barcamp, but for developers only! Location
for 150 people One big room 5 small conference rooms Sponsors wanted as well Contact me!
Introduction
Static site generators There are a few out there... 388
https://staticsitegenerators.net/ Known ones Jekyll, Octopress, Pelican, Middleman
Use-Cases Prototyping Documentation Small websites Blogs Potentially replacing misused CMS
harp static web server with built-in preprocessing HTML: EJS, Jade,
Markdown CSS: LESS, Stylus, SASS JS: Coffeescript
Installation npm install -g harp harp init myproject harp server
myproject
Features
Command line options harp compile creates compiled HTML/CSS/JS for static
hosting harp multihost allows to develop multiple projects in parallel
Features - Partials <!-- _nav.ejs --> <nav> <a href="#">Home</a> <a
href="#">Product</a> <a href="#">Services</a> </nav> <!-- index.ejs --> <body> <%= partial("_nav") %> <h1>Services</h1> <!-- etc. --> </body>
Features - Metadata { "team": { "title": "Team page", "members":
["Rob", “Brock", "Jorge"] } } h1= title ul each member in members li= member _data.json team.jade
Integration - express.js var express = require("express"); var harp =
require("harp"); var app = express(); app.configure(function(){ app.use(express.static(__dirname + "/public")); app.use(harp.mount(__dirname + "/public")); });
Features - Boilerplates harp init -b harp-boilerplates/hb-blog Blog, Bootstrap, Presentations...
https://github.com/harp-boilerplates
Features - Environment Act different depending on your environment production
|| development Display drafts etc.. Different caching strategy (LRU vs. none) harp compile is production as well!
Features - Deployment GitHub Pages Heroku Azure harp.io
Features... Support for globals.json current object for application state Basic
Auth Custom 404, 200 (for client apps) More help through recipes http://harpjs.com/recipes/
Not (yet) implemented... browser-sync https://github.com/sintaxi/harp/pull/360 terraform needs to be updated
more regularly lots of pending PRs with support for other languages Big picture: Harp editor https://github.com/silentrob/harp-editor
DEMO
Resources Harp http://harpjs.com/ https://github.com/sintaxi/harp Harp Platform https://www.harp.io/ Note: No affiliation
with harp just stole the design!
Thanks for listening! Alexander Reelsen @spinscale
[email protected]