This project was created using Reactjs and Firebase Database.
Frontend structure is as follows, according to Reactjs principles:
The First Screen just how one component called registration, which has a embedded form.
The Second Screen contains three components:
-game
--gamemove
---(embedded html)
---gameresult
---gameresult
As you can see there is a reused component, gameresult, which is used to display the round winner and the winners of the games.
GAME/
README.md
node_modules/
package.json
public/
index.html
favicon.ico
src/
components/
game.js
gamemove.js
gameresults.js
registration.js
App.css
App.js
App.test.js
index.css
index.js
For the project to build, these next files must exist with exact filenames:
public/index.html
is the page template;src/index.js
is the JavaScript entry point.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Follow the next instructions to run this project localy
git clone https://github.com/lgutie16/GAME.git [Clone the project in your selected directory]
cd GAME [Go inside the main source directory]
npm start [Run script descripted above]