A simple implementation of Boggle game using React and Rails
The instruction below will get you a instance of the project up and running on you local machine.
You can visit the working app at https://simple-boggle-game.herokuapp.com/
Boggle game setup for docker requires the following:
- Docker
- Docker Compose
Installation is straight forward, but vaires by OS.
Detail instructions for each OS can be found here.
Installation is straight forward, but vaires by OS.
Detail instructions for each OS can be found here.
- Kick off docker-compose:
docker-compose up
- Vist http://localhost:3000
Boggle game will require following dependencies:
- Ruby on Rails
- NPM
- Heroku (Optional)
Follow the steps found here
or better use manager like rbenv or or RVM
Follow the steps found here
Follow the steps found here
- Install rails backend dependencies
bundle install
- Install react frontend dependencies
cd client
npm install
- Bring up the instance:
rake start
- (OR)Bring up the instance individually
rails s -p 3001
# Starts backendcd client && npm start
# Starts fronend
- Vist http://localhost:3000
Boggle game includes multiple test cases for both back-end and frontend
cd boggle-game
docker-compose run web rails test
docker exec boggle_web rails test
cd boggle-game # root of project
rails test
cd boggle-game
docker-compose run web bash -c "cd client && npm test"
docker exec boggle_web bash -c "cd client && npm test"
cd boggle-game/client # OR cd client from root folder
npm test
cd boggle-game
docker-compose run web bash -c "cd client && CI=true npm test"
docker exec boogle_web bash -c "cd client && CI=true npm test"
cd boggle-game/client # OR cd client from root folder
npm test:e2e
- Sajal N. Shrestha