Fairnopoly is a free market place in the hand of the users.
Read more about it at: www.fairnopoly.de/
The development currently is in beta state. The Fairnopoly source is developed in ruby-1.9.3
If you are not sure how to install Ruby and the Ruby on Rails framework on your computer, have a look at Michael Hartl’s excellent tutorial on the subject.
Note: the automated process won’t work in windows. To run Fairnopoly locally in development mode, install ruby and rails. Then open up a console and paste in the following line:
git clone git@github.com:fairnopoly/fairnopoly.git && cd fairnopoly/ && ruby setup.rb
What this does:
-
Sets up a local git repository
git clone git@github.com:fairnopoly/fairnopoly.git
-
Switches to the fairnopoly root path
cd fairnopoly/
-
Runs the Fairnopoly setup script
ruby setup.rb
If the automated script doesn’t work for you, try going through these steps one by one:
-
Set up a local git repository
git clone git@github.com:fairnopoly/fairnopoly.git cd fairnopoly/
-
Install required gems (preface with rvmsudo if you are using rvm)
bundle install
-
set up local files and change the setup data if you want
cp config/environments/development.example.rb config/environments/development.rb cp config/initializers/secret_token.example config/initializers/secret_token.rb
-
migrate and seed
rake db:create && rake db:migrate && rake db:seed && rake db:test:prepare
-
if you would like to test the mailer, please open the copied file and update it according to your testing mail server
-
you may like to adopt the config/database.yml according to your wishes
-
to use the recaptcha you have to add your keys in the api.yml. You can get the keys at www.google.com/recaptcha/admin/list
-
start rails and have fun
rails s
<img src=“https://travis-ci.org/fairnopoly/fairnopoly.png” />
To run the tests: if you haven’t already, prepare the testing database
rake db:test:prepare
Then run the tests
rspec
Run an automated test tab with
autotest
If you update your branch from before, you may have to migrate the test database:
RAILS_ENV=test rake db:migrate
If you want to help out with programming new features or fixing bugs, please consider the following guidelines:
-
If you do no have direct access to our github repository, you can fork it, make changes on your forked repo, and then submit a pull request
-
If you have access to our repository, please create a new git branch before making changes when coding a larger feature
git branch [featurename]
-
We use TDD (Test Driven Development), so when making any changes at all:
- write test -> test suite red - code just enough to get test suite green - refactor if need be
-
When finished with a task:
git add [corresponding files OR simply . for everything] git commit -m "[description]" git push
-
If you created a new branch for a larger feature, you need to merge the changes after you are finished:
git checkout master git merge [featurename] master [you might need to resolve merge conflicts] git commit git push
Hint: When a vim window opened after you typed “git commit” without a commit message, you can save the default message by simply typing “:wq” and pressing enter.
Share the idea, take part at www.fairnopoly.de/ and make the world a better place!
Regarding the source, there are two ways to contribute.
-
Report a bug?
-
Just use the github issue tracker.
-
-
Want to help out and join feature development?
-
Send us an email at email@fairnopoly.de and work with us to make the world a better place
-
or make a github account and click on the button called “Fork” in the upper right corner of our repository. Then code a few cool features, commit and push your changes, and submit a “Pull Request” so we can implement your work.
-