This repo will contain all the code related to StockXchange 2016 game.
If you want to contribute to this repository then fork this repository, make changes to your own codebase and then generate pull request. Even though all of you have access to the master branch please refrain from pushing code to the master branch. The reason is that it's a good practice to get your code reviewed by other developers as that helps to find bugs.
First of all fork this repository. You will get some url which will point to your own profile eg. Lets suppose that url of forked repo is "https://github.com/vik-y/stockXchange"
git remote add origin https://github.com/vik-y/stockXchange
git pull origin masterThis will fetch the code from the forked branch which you own to your system.
Now add a remote which points to the main code base that is github.com/zense/stockXchange
git remote add upstream https://github.com/zense/stockXchangeThat's it. Now you have basic setup ready to contribute.
- Install bower
cd public/vendors
bower installThis will setup the front-end dependencies like bootstrap, angular etc.
If you are getting merge conflict in files like "schema.rb" or "Gemfile.lock" then this will work :
# For resolving schema.rb conflict
git checkout HEAD schema.rb
rake db:migrate
# For resolving Gemfile.lock conflicts
git checkout HEAD Gemfile.lock
bundle installIf you are getting "Uninitialized Constant ActiveAdmin (Name error)" then this will probably work :
gem 'activeadmin', github: 'activeadmin' # Add to GemFile
bundle install
rails g active_admin:install --skip-users # Will add Active Admin with existing users
rake db:migrateBut it is better to remove activeadmin for now, because it can be added at the very end. To remove active admin :
rails destroy active_admin:install
rails destroy active_admin:resource specific_table_name # type this command if you put some other migration to active admin