Git Product home page Git Product logo

bootstrap-cdn's Introduction

Bootstrap CDN

Join the chat at https://gitter.im/MaxCDN/bootstrap-cdn Build Status Dependency Status devDependency Status

Deploy your own copy on Heroku

Deploy to Heroku

Requirements

  1. Node.js

Running

When running basic make tasks, make <task> is supported for *nix users and node make <task> is supported for Windows users.

Development

npm install

[node] make test run

Stubbing "Popular Files"

There are two ways of using local popular.json data.

The first is to use the stubbed version in the test framework, this can be done by changing config/_config.yml and setting extras to stub...

####
# Turn stats on or off.
# - Use 'stub' to develop against test stub.
# extras: true
extras: stub

The second method would be to copy tests/stubs/popular.json to your system's temp directory as .popular.json โ€“ e.g. /tmp/.popular.json on Linux and Mac.

If you're unsure of the location of the temp directory on your system, do the following:

$ node
> os.tmpdir()
'/tmp'

Demonized

##
# for the following make tasks, you can also run:
#
# npm <task name>
##

# start server
node make start

# stop server
node make stop

# restart server
node make restart

# server status
node make status

# view logs
tail -f ./logs/server.log

Nginx

Nginx tasks are only supported on *nix platforms which support make.

# generate nginx conf for your checkout and start nginx
node make nginx/start

# stop nginx
node make nginx/stop

# restart (stop then start) nginx
node make nginx/restart

# HUP nginx process to reload configs
node make nginx/reload

# to regnerate nginx.conf
rm nginx.conf

Configuration

config/_config.yml

Key Overview:

  1. port: Integer value of the Node application port.
  2. theme: Integer value of the array index from the bootswatch section below.
  3. authors: Array of Author Strings
  4. description: String containing the meta descript of the site.
  5. extras: Turn on extras functionality. Requires config/_oauth.yml update with correct key and security tokens.
  6. favicon: Hash containing the favicon path.
  7. google_analytics: Hash containing GA account_id and domain_name.
  8. stylesheets: Array containing stylesheet files to be loaded at the top of the site.
  9. javascripts: Array containing javascript files to be loaded either before (at the top) or after (at the bottom) of the site.
  10. bootswatch: Hash containing current Bootswatch meta data and themes.
  11. bootlint: Array of Hashes containing Bootlint meta data and pathing.
  12. bootstrap: Array of Hashes containing Bootstrap meta data and pathing.

config/_tweets.yml

To add new tweets to the "Mad Love" section, follow these steps:

  1. Copy the full <blockquote> HTML from the "Embed Tweet" source obtained via Twitter.
  2. Replace all double quotes (") with single quotes (').
  3. Wrap entire HTML block in double quotes (").
  4. Add to _tweets.yml, preceeded with a dash (-), which signifies an array item in YAML.

config/_oauth.yml

This is reserved for MaxCDN and NetDNA installation only at this time. Contact @jdorfman for more information.

bootstrap-cdn's People

Contributors

auscompgeek avatar benschell avatar bmconklin avatar caasig avatar cassiux avatar cvrebert avatar eamonnscu avatar flashtopia avatar gitter-badger avatar it-can avatar jdorfman avatar jensenbox avatar jimaek avatar jmervine avatar jonathankingston avatar karloespiritu avatar krinkle avatar mathiasbynens avatar mimic84 avatar peterdavehello avatar philbrown avatar thomaspark avatar tjasko avatar tobsn avatar xhmikosr avatar

Watchers

 avatar  avatar

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.