Giter Site home page Giter Site logo

caseywatts / codefordc-2.0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from civictechdc/codefordc.github.com

0.0 0.0 0.0 17.21 MB

The current Code for DC website

Home Page: http://www.codefordc.org

License: GNU General Public License v2.0

HTML 69.56% Ruby 1.53% CSS 13.34% JavaScript 14.23% Shell 1.35%

codefordc-2.0's Introduction

Code For DC Website

This is the repository for the website for Code for DC, the DC chapter of the Code for America Brigade program.

This site is built on Github pages and uses Jekyll for its blog.

Contributing

If you want to make a blog post: read this.

If you want to add a project to the projects page: read this.

For everything else:

First, make sure that you have git on your computer. Create your own fork of the repository, then clone it to your computer:

git clone [email protected]:[YOUR GITHUB NAME]/codefordc-2.0.git

You can work on the master branch (which is the default), but it's preferable to set up a new branch if you're working on a specific feature:

git checkout -b [NEW BRANCH NAME]

Next, you'll want to view the site locally using jekyll. There are two ways to do this:

Less steps, but more points of failure

Make sure that you have Ruby installed on your system.

If you do, try this:

gem install jekyll #sudo is probably required
jekyll serve -w

Hopefully it works! If not and you see something like jekyll: command not found, you'll need to add the jekyll executable's location to your shell's $PATH variable. Here's an example of how that might work, but you should do some Googling to understand what you're doing here:

gem which jekyll
# /usr/lib/ruby/gems/1.9.3/gems/jekyll-2.4.0/lib/jekyll.rb
export PATH=$PATH:/usr/lib/ruby/gems/1.9.3/gems/jekyll-2.4.0/bin
jekyll serve -w

Point your browser to 0.0.0.0:4000. As you can see, this is a bit of a hacky workaround. If you upgrade Ruby in the future, be aware that this might get confusing as you add more gems.

More steps, but more likely to work

A more elegant solution is to use a Ruby manager. Both rbenv and RVM are popular, but this example will use the former for its simplicity. Install it, making sure to set up the init script and restart your shell. This may take some effort, but will allow you to manage multiple versions of Ruby and their various dependencies across projects (this is a common problem in Rubyland).

Then:

rbenv install 2.1.1
gem install bundler
bundle install
bundle exec jekyll serve -w

Point your browser to 0.0.0.0:4000.

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.