Code Monkey home page Code Monkey logo

shescoding-dot-org's Introduction

This is the code for the shescoding.org website.

About She's Coding

She's Coding is an open-source website project currently under development in cooperation with the documentary film CODE: Debugging the Gender Gap. She’s Coding is meant to serve as the destination for anyone who wants to learn more about the gender gap problem in computer science and become part of the solution.

Open-source?

Yes! She's Coding is build by the community, for the community. We currently have a small group of volunteers bootstrapping the project, and we are in the process of defining some simple rules on how to contribute for the wider community.

Let us know if you want to join our team!

Installation

  • Install Homebrew (OSX):

    $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • Set the Ruby version to 2.3.1. In order to be able to pick the ruby version or to download ruby, we recommend using a ruby version manager. There are 2 ruby version management tools: rvm and rbenv.

    RVM
    Installing rvm from scratch:
    • Install rvm:

      $ \curl -sSL https://get.rvm.io | bash -s stable
      
    • Install Ruby:

      $ rvm install 2.3.1
      
    • Select this version of ruby for use in this project:

      $ rvm use 2.3.1
      
    Set ruby version if you already have rvm installed:
    • Select this version for use:

      $ rvm use 2.3.1
      
    RBENV
    Installing rbenv from scratch:
    • Install rbenv:

      $ brew install rbenv
      
    • Install Ruby:

      $ rbenv install 2.3.1
      
    • Check ruby version:

      $ ruby -v
      

    You should see ruby version printed as result: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]

    Set ruby version if you already have rbenv installed:
    • Change your ruby version locally inside shescoding-dot-org repository:

      $ cd shescoding-dot-org
      $ rbenv local 2.3.1
      
  • Install Postgresql

    • Mac:

      Install:

      $ brew install postgresql
      

      Initialize the postgres database:

      $ initdb /usr/local/var/postgres
      

      Start the postgres server:

      $ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
      
    • Ubuntu:

      See [https://help.ubuntu.com/community/PostgreSQL]

      For simple setup (local use only) follow the "Alternate Server Setup" of the resource provided above.

  • Set up the database:

    $ createdb shescoding_development
    $ psql -d shescoding_development -c "CREATE USER shescoding WITH PASSWORD 'shescoding'"
    $ psql -d shescoding_development -c "GRANT ALL PRIVILEGES ON DATABASE shescoding_development to shescoding"
    
  • Set up your local repo

    • Fork the repository by hitting the "Fork" button on the shescoding github page.

    • Clone the repository:

      $ git clone https://github.com/shescoding/shescoding-dot-org.git
      
    • Add the upstream repository:

      $ git remote add upstream https://github.com/shescoding/shescoding-dot-org.git
      
  • Load all the gems:

    $ bundle install
    
  • Run database migrations:

    $ rake db:migrate
    
  • Seed the database:

    $ rake db:seed
    
  • Start the Rails server:

    $ rails s
    
  • Visit the project at localhost:3000

Pre-commit hook

Please do not commit and push directly to the master branch! The hooks/pre-commit file in this repository contains a pre-commit hook that warns you if you are checking directly into master. In order to enable this hook, from the root of the repo do:

$ cp hooks/pre-commit .git/hooks/
$ chmod +x .git/hooks/pre-commit

Running the tests

In order to run the tests, make sure all the gems are installed and the test environment is set up properly with working database.

  • Set up:
$ bundle install
$ bundle exec rake db:create RAILS_ENV=test
$ bundle exec rake db:schema:load RAILS_ENV=test
$ bundle exec rspec -fd

Notes:

  • -fd stands for full details. You can also run tests by using commands bundle exec rspec or bundle exec rake to get an overview without details of each test.
  • If you are having trouble running bundle install, please make sure Nokogiri gem is installed on your machine. Full instructions can be found here.

shescoding-dot-org's People

Contributors

natsteinmetz avatar khjrtbrg avatar cherchezlafemme avatar tinakumar avatar bri-meow avatar rmoshier avatar margerosen avatar callapatel avatar brisourceful avatar eak000 avatar jadefaerie avatar nickirios avatar probinson2015 avatar charissayj avatar adriennelim avatar tuckerd avatar gfranco93 avatar elenaires avatar vncsalencar avatar vlatkapavisic avatar bambery avatar devinyr avatar seadev avatar

Watchers

James Cloos 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.