-
Notifications
You must be signed in to change notification settings - Fork 9
Getting Started
Welcome to the BikeBike wiki!
- Visit http://railsinstaller.org/en
- Download RailsInstaller 3.0 (here)
- You can optionally download a Git GUI client such as GitHub for Windows
Do your best to get them installed then write out what you did here.
-
Install git with the package manager for your distribution
sudo apt-get install git
-
Install PostgreSQL with the package manager for your distribution
- Resources for postgres on ubuntu:
-
Install PhantomJS for running integration tests with the Poltergeist driver
- See instructions https://github.com/teampoltergeist/poltergeist#linux
-
Install ruby with a ruby version manager so that you don't rely on your system ruby
- Suggest RVM or rbenv
- See https://rvm.io/ for instructions on installing and using RVM
-
Switch to ruby 2.0.0 and install bundler to your ruby 2.0.0 gems & then install gems
rvm use 2.0.0 gem install bundler bundle install
- Go to http://www.postgresql.org/download/
- Download and install the appropriate version
- PGAdmin is not necessary but recommended, if your download does not include it and it is available for your operating system you may want to install it to make your life a little easier if you're not a command line junky.
- Create your username and set a password
-
From the terminal: create a postgres user (with db create permissions but no user create permissions):
sudo -u postgres createuser -d -A -P username
If you don't already have one that you like here's a few recommendations.
- [Sublime Text] (http://www.sublimetext.com/): Probably the most popular tool used by Rails developers, lightweight and easy to set up.
- [Atom] (https://atom.io/): A brand new editor with a lot of potential.
- [Eclipse] (https://www.eclipse.org/): Traditional Java editor but there's some good plugins for editing Ruby and Rails.
- [Notepad] (http://www.notepad.org/): Just don't, please.
- [PhantomJS] (http://phantomjs.org/download.html): required for cucumber tests. For windows users, you'll need to download the zip file and extract
phantomjs.exe
to somewhere available to the path, a good place might beRoot:\RailsInstaller\Ruby2.0.0\bin\
. - [NodeJS] (http://nodejs.org/): required for cucumber tests.
-
Open up your command line. For windows you can use Command Prompt but Powershell is recommended.
-
Navigate to the base folder of your code (
cd C:\Code\BikeBike\
,cd /home/workspaces/bikebike
or whatever) -
Install all required gems:
bundle install
-
Make a copy of
/config/database.yml.example
as/config/database.yml
and edit the file. Change the usernames and passwords (and anything else you need/like) to match the settings in your database. Then create the database:rake db:create
After this, you need to execute the pending database migrations:
rake db:migrate
You should only need to create the database once, however you will need to remember how to run migrations every time you pull down new code or create a new model.
Remember this command, you'll need to run it often.
rake cucumber
rails server
You should now be able to see the site at http://localhost:3000
This step is not necessary but will allow you to see the site at an address other than http://localhost so that you can see the site in other languages for instance.
Open your hosts file, you should be able to find it at C:\Windows\System32\drivers\etc\hosts
. To make dev.bikebike.org
point to your localhost for example, add the line:
127.0.0.1 dev.bikebike.org
Now you should be able to visit http://dev.bikebike.org:3000 and see the same page as you saw at http://localhost:3000.
Contact any collaborators (@G0dwin should always be available) to get on the following.
Becoming a collaborator enables you to push code changes to github.
We use Trello for managing non-issue tasks.
If you experienced something different than the above, let others know by updating this page. Continue to help others by editing or creating other wiki pages.
Read about our github workflow, organizational practices, and testing and coding standards. Ask questions, add to the documentation and suggest changes if you think you can make improvements.
Look through the issues and see what you feel like taking on, you can also look through the Trello cards if nothing there suits your fancy. If you have ideas which are not included in the above you can start a discussion or simply start developing a new Gem Abstraction. Of course, high priority issues and tasks would be of much higher value than creating new code, however you need to use your time as you feel will give back to the project and yourself the most.
Make some changes and commit that code (following our github workflow of course).