CSCE 606 Ethics Game project
Live Site: https://protected-anchorage-46452.herokuapp.com/
Ruby 2.4.1
Rails 5.2.1
Instructions to setup:
$ git clone <this_repo>
$ cd Ethic-game
$ sudo su
$ chown -R ec2-user ethic_game/
$ exit
$ cd ethic_game
$ sudo yum install libxml2-devel libxslt-devel
$ nvm i v8
$ npm install -g heroku
$ sudo yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs
$ sudo su
$ bundle install
$ exit
$ Follow these instructions for cloud9 and rails setup (skip first step, already done above): https://medium.com/@floodfx/setting-up-postgres-on-cloud9-ide-720e5b879154
$ rake db:setup
$ rake db:migrate (we don't have any yet)
$ rails server -p $PORT -b $IP (you won't get the side message but just click preview above and preview running application, than open in a browser.)
$ should see the welcome page for rails.
Make sure your inside the 'ethic_game' directory
$ rake db:migrate (upgrade to latest migration)
$ rake db:rollback (downgrade recent migration)
Make sure your inside the 'ethic_game' directory
$ sudo service postgresql restart
$ rails server -p $PORT -b $IP
https://guides.rubyonrails.org/association_basics.html
$ psql -d ethic_game_development
Now you can run SQL queries on the db.
https://github.com/seamusabshere/fuzzy_match
The following site has many Libraries for NLP related things: http://rubynlp.org/
(Denish pushes for now but we can make a group account and everyone will do below instructions.)
(Only one person needs to do 'heroku create', do not do it if already done.)
$ cd Ethics-Game
$ do not go into ethic_game directory
$ git subtree push --prefix ethic_game heroku master
$ heroku pg:reset
$ heroku run rake db:migrate
$ heroku run rake db:seed
Make sure your inside the 'Ethics-Game' directory
TRY TO AVOID DIRECT MERGE/PUSH TO MASTER
$ git checkout -b <feature_branch_name>
$ git add .
$ git commit -m "<your_message>"
$ git status (make sure nothing is uncommited and that it shows clean)
$ git checkout master
$ git pull
$ git checkout <feature_branch_name>
$ git rebase master
$ fix any merge conflicts if any
$ git push -u origin <feature_branch_name>
$ now got to github and create a merge request for your branch.