A basic website for a fictitious coffeehouse based on Bootstrap running on Generic Hipster Coffee
Install latest node.js
npm install -g gulp-clinpm installTo develop with automatic compilation and browser refreshing run
gulpAnd see the result on http://localhost:3000/
To build everything once (in /dist/ folder)
gulp buildindex.css is compiled from src/scss/index.scss by Sass.
HTML is generated from Twig.js templates (JavaScript impementation of Twig templating language) in src/templates.
Start templates that are not pages with _. Typically these are templates used for include or extend.
Documentation for Twig.
Warning: Twig.js doesn't implement 100% of Twig.
There are some data about our coffees to be available in all templates, use templates/data.json for that.
Folders and files from /src/static/ are just copied directly to /dist/ folder.
This website is made with Bootstrap 4 beta.
Not necessary components are commented out to reduce final 'index.css' file size.
If you need some other components, go to /src/index.scss or /src/_custom-bootstrap-variables.scss and uncomment it.
See gulpfile.js for supported browsers.
Upload everything in /dist/ folder to the server.
If you want to to deploy a new version, please contact me at danko.vktr at gmail.com.
You can use surge.sh free service for that.
- Install surge client
npm install --global surge. - Run
surgemanually once in/dist: you will create an account with surge.sh. - Set your own domain in
gulpfile.js(replacehttps://my-first-website.surge.sh). - From now on run
gulp deploywhenever you want to publish a new version.