Giter Site home page Giter Site logo

ethic-game's Introduction

Ethics-Game

CSCE 606 Ethics Game project

Live Site: https://protected-anchorage-46452.herokuapp.com/

Requirements:

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.

Database Migration

Make sure your inside the 'ethic_game' directory

$ rake db:migrate (upgrade to latest migration)
$ rake db:rollback (downgrade recent migration)

Start The Application

Make sure your inside the 'ethic_game' directory

$ sudo service postgresql restart
$ rails server -p $PORT -b $IP

Database Relation Reference

https://guides.rubyonrails.org/association_basics.html

View Database Locally

$ psql -d ethic_game_development

Now you can run SQL queries on the db.

Current library used for matching questions:

https://github.com/seamusabshere/fuzzy_match

Possible Improvements

The following site has many Libraries for NLP related things: http://rubynlp.org/

Pushing to heroku:

(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

Reset Heroku Database:

$ heroku pg:reset
$ heroku run rake db:migrate
$ heroku run rake db:seed

Github Contribution Rules

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.

ethic-game's People

Contributors

chengchengeasy avatar davidpcross17 avatar davidpcross19 avatar delamet avatar denish44 avatar team-rails avatar weidnern avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.