Giter VIP home page Giter VIP logo

static-base's Introduction

#What Is This?# Static Base is a minimal static site framework built on top of Jekyll. It's got a bunch of development niceties baked right in for extra goodness.

##Niceties you say? Yup - things like:##

  • Support for Sass, Less and Coffeescript
  • Automatic asset minification and fingerprinting (cachebusting filenames)
  • Live Reload support baked in (refresh ALL THE THINGS!)
  • Altitude's simple grid, form and button modules
  • A starter UI Kit - view it at /ui-kit

##Getting Started:##

  1. $ git clone https://github.com/we-are-altitude/static-base.git
  2. $ bundle install

##Launch A Local Server:##

  1. $ guard
  2. Browse to http://localhost:4000

##Build your site locally:## jekyll build --config _config.yml,_config-local.yml

##Deploying to Amazon S3:##

Like any other Jekyll based blog or site, publishing to Amazon S3 is fast, easy and often free. To build your static site, ready for deployment to S3 simply run:

$ jekyll build --config _config.yml,_config-production.yml

This will create a new public folder in the root with your minified and fingerprinted assets. Drop the contents of this folder in your Amazon S3 bucket of choice and enable static website hosting.

Of course you could go a step further and use a something like the s3_wesbite gem to easily push and update your site from the command line.

Boosh!

##Deploying to Heroku:##

Static Base is preconfigured to make deployments to Heroku simple. While Amazon S3 is great for 99% of static sites, if you need SSL support Heroku may be much cheaper / more robust.

Before you can push your static site however you'll need to do two things:

  1. Enable the Heroku Labs feature user-env-compile: $ heroku labs:enable user-env-compile -a myapp

  2. Create a Heroku environment config variable ('staging' and 'production' supported): $ heroku config:set ENV=production

That's it. When you push your changes to your Heroku app your assets will be built, minified and fingerprinted and Puma server will be started.

##Follow us for more updates: @twanlass / @dev_vine / @WeAreAltitude

static-base's People

Contributors

fraklo avatar twanlass avatar

Stargazers

Michael Herman avatar Chris Witko avatar Tristan Zajonc avatar

Watchers

James Cloos avatar wercker avatar  avatar  avatar

Forkers

twanlass

static-base's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.