https://bowling-score-calulate.herokuapp.com/
This is a sample app to calculate total score of a bowling game. The bowling sequence is given as a sting in the frontend.
The backend of this project is developed in Rails and the Frontend part in React. To run this project in
the local machine, we have to install both Rails
and Node
.
Setup
-
Clone the repository
[email protected]:rajibds/bowling-game-calculator.git
-
Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
rbenv:
brew install rbenv ruby-build # Add rbenv to bash so that it loads every time you open a terminal echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile source ~/.bash_profile # Install Ruby rbenv install 2.7.1 rbenv global 2.7.1 # Check if 2.7.1 is installed ruby -v
-
PostgreSQL
brew install postgresql # To have launchd start postgresql at login: brew services start postgresql
-
nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash # install node(>10.13.0) nvm install 12 nvm use 12
-
Dependency installation
gem install bundler brew install yarn bundle install yarn install
-
Database initialization
rails db:prepare
-
Foreman installation
gem install foreman
-
Server Start
foreman s