Name: shescoding-dot-org
Owner: She's Coding
Description: null
Created: 2015-03-25 03:57:31.0
Updated: 2017-11-11 18:19:49.0
Pushed: 2017-11-11 01:38:03.0
Homepage: http://shescoding.org
Size: 16481
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is the code for the shescoding.org website.
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!
Install Homebrew (OSX):
by -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.
Install rvm:
url -sSL https://get.rvm.io | bash -s stable
Install Ruby:
m install 2.3.1
Select this version of ruby for use in this project:
m use 2.3.1
Select this version for use:
m use 2.3.1
Install rbenv:
ew install rbenv
Install Ruby:
env install 2.3.1
Check ruby version:
by -v
2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
Change your ruby version locally inside shescoding-dot-org repository:
shescoding-dot-org
env local 2.3.1
Install Postgresql
Mac:
Install:
ew install postgresql
Initialize the postgres database:
itdb /usr/local/var/postgres
Start the postgres server:
_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:
eatedb shescoding_development
ql -d shescoding_development -c "CREATE USER shescoding WITH PASSWORD 'shescoding'"
ql -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:
t clone https://github.com/<your_github_username>/shescoding-dot-org.git
Add the upstream repository:
t remote add upstream https://github.com/shescoding/shescoding-dot-org.git
Load all the gems:
ndle install
Run database migrations:
ke db:migrate
Seed the database:
ke db:seed
Start the Rails server:
ils s
Visit the project at localhost:3000
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:
hooks/pre-commit .git/hooks/
mod +x .git/hooks/pre-commit
In order to run the tests, make sure all the gems are installed and the test environment is set up properly with working database.
ndle install
ndle exec rake db:create RAILS_ENV=test
ndle exec rake db:schema:load RAILS_ENV=test
ndle exec rspec -fd
Notes: