static sites - bringing web 1.0 back
TRANSCRIPT
![Page 1: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/1.jpg)
STATIC SITESBRINGING WEB 1.0 BACK!
![Page 2: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/2.jpg)
WHO AM I?Raymond CamdenDeveloper Advocate for IBMMobileFirst, Bluemix,Cordova/PhoneGap, Web StandardsBlogging at raymondcamden.com@raymondcamden
![Page 3: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/3.jpg)
ASSETShttps://github.com/cfjedimaster/Static-Sites
![Page 4: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/4.jpg)
GENERAL GAME PLANWhyHowBringing Dynamic Back
Not as good as bringing sexy backHosting Options
![Page 5: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/5.jpg)
WHY?
![Page 6: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/6.jpg)
ColdFusion, PHP, Node, Groovy, SQL Server, MySQL, Oracle(shudder), all kind of other super-fancy dynamic crap!
![Page 7: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/7.jpg)
WHY?
![Page 8: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/8.jpg)
![Page 9: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/9.jpg)
REASON ONE:CRAP BREAKS
![Page 10: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/10.jpg)
![Page 11: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/11.jpg)
REASON TWO:YOU NEED LESS
![Page 12: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/12.jpg)
![Page 13: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/13.jpg)
REASON THREE:MOBILE PHONES + APPS
![Page 14: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/14.jpg)
![Page 15: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/15.jpg)
REASON FOUR:WEB BROWSERS DON'T SUCK!
As much...
![Page 16: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/16.jpg)
MODERN WEB DEVELOPMENTMultiple web serversMultiple application serversMultiple db serversMultiple caching serversMultiple servers
![Page 17: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/17.jpg)
OR
![Page 18: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/18.jpg)
FILES
![Page 19: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/19.jpg)
NO SERIOUSLY - FILES
![Page 20: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/20.jpg)
![Page 21: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/21.jpg)
HOW?
![Page 22: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/22.jpg)
STATIC SITE OPTIONSDesktop ProgramsGenerators
![Page 23: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/23.jpg)
Typically they...
GENERATORS
They give you a template languageThey give you a data languageThey give you a way to previewThey give you a way to generate files
![Page 24: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/24.jpg)
OPTIONShttps://staticsitegenerators.nethttps://www.staticgen.com
![Page 25: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/25.jpg)
FOR TODAYHarp
![Page 26: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/26.jpg)
HARP
![Page 27: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/27.jpg)
DETAILSharpjs.comworks everywheretemplates: EJS, Jade, Markdownpreprocessers: LESS, Sass, Stylus, CoffeeScript
![Page 28: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/28.jpg)
INSTALLATIONsudo npm install -g harp
![Page 29: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/29.jpg)
CLIinit - new projectserver - developcompile - generate
![Page 30: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/30.jpg)
DEMOS (INITIAL)
![Page 31: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/31.jpg)
ORGANIZATIONHarp lets you create hidden assets, files, etcAnything with an _ in front is hiddenYou can use a "public" folder for your site
![Page 32: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/32.jpg)
DEMOS
![Page 33: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/33.jpg)
DATAGlobal dataMetadata
![Page 34: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/34.jpg)
GLOBAL DATAharp.json in Public Mode_harp.json in "Root Style" Mode
![Page 35: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/35.jpg)
EXAMPLE{ "globals":{ "sitename":"Ray's World", "email":"[email protected]" }}
![Page 36: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/36.jpg)
DEMOS (DATA 1)
![Page 37: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/37.jpg)
METADATA_data.json in a folderAssociated with current folderIf you use an object w/ keys that match file names,something special happens
![Page 38: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/38.jpg)
DEMOS (DATA 2)
![Page 39: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/39.jpg)
MORE STUFFProd/Dev code (via environment)"Current" scope (for nav)Directory contents404 support (?)
![Page 40: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/40.jpg)
MORE MORE STUFFMultihost modeNon-HTML files (ie, rss.xml.ejs)Run within NodeBasic Authentication
![Page 41: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/41.jpg)
PRODUCTION SITEScoldfusioncookbook.comwhatthethundersaid.org
![Page 42: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/42.jpg)
SUMMARYLearn more at harpjs.comCheck out the recipes at http://harpjs.com/recipes/
![Page 43: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/43.jpg)
BRINGING DYAMICBACK
![Page 44: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/44.jpg)
DYNAMIC STUFFFormsCommentsSearchCalendars"Data"
![Page 45: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/45.jpg)
FORMSWuFoo ($)Google DocFormKeepmailto
![Page 46: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/46.jpg)
DEMORay, since I know you'll forget, use the form on JSCB.
![Page 47: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/47.jpg)
COMMENTSDisqusLivefye
![Page 48: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/48.jpg)
DEMORay, since I know you'll forget this too, use
coldfusioncookbook.
![Page 49: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/49.jpg)
SEARCHGoogle Custom Search Engine
![Page 50: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/50.jpg)
DEMORay, since I know you'll forget this too, use
coldfusioncookbook.
![Page 51: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/51.jpg)
CALENDARSGoogle CalendarFullCalendarEventBrite
![Page 52: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/52.jpg)
DEMOcal.html
![Page 53: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/53.jpg)
"DATA"ParseFirebaseAnd more I don't know about
![Page 54: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/54.jpg)
DEPLOYING
![Page 55: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/55.jpg)
OPTIONSTraditional Web ServerAmazon S3 Web Hosting (coldfusioncookbook.com,louisianawatercolors.com, whatthethundersaid.org,cajunipsum.com, static.raymondcamden.com)
Google Cloud Storage(http://githubhealth.raymondcamden.com/)
Link (General)Link (Specific)
Link
![Page 56: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/56.jpg)
ANOTHER OPTION
Surge
![Page 57: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/57.jpg)
WRAP UP
![Page 58: Static Sites - Bringing Web 1.0 Back](https://reader031.vdocument.in/reader031/viewer/2022032300/55cade83bb61eb6a148b45b8/html5/thumbnails/58.jpg)
COOL LINKS
My Sites:https://github.com/remotesynth/Static-Site-Samples
http://static.raymondcamden.com/cfuitherightway/http://www.cajunipsum.comhttp://www.coldfusioncookbook.comhttp://www.louisianawatercolors.comhttp://www.whatthethundersaid.orghttp://githubhealth.raymondcamden.com