go to app @ Heroku:
git clone
npm install
"gh-pages": "^2.0.1",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-scripts": "2.1.5"
npm start
http://localhost:3000/
create-react-app
was used initially to start development of this app, and App.js
and App.css
have been modified.ClickyItem
, AppNavbar
have been added specifically for this web application.src
├── components
│ ├── AppNavbar -- Navbar React component
│ │ ├── index.js -- Javascript for AppNavbar
│ │ └── style.css -- CSS for AppNavbar
│ ├── ClickyItemContainer -- Clickable items container
│ │ ├── ClickyItem -- Single clickable item
│ │ │ ├── index.js -- Javascript for ClickyItem
│ │ │ └── style.css -- CSS for ClickyItem
│ │ ├── ItemSrc -- Image source
│ │ │ └── index.js -- Data object for the images
│ │ ├── index.js -- Javascript for ClickyItemContainer
│ │ └── style.css -- CSS for ClickyItemContainer
│ ├── App.css -- css for the App
│ ├── App.js -- main game app page
│ └── App.test.js
├── shared
│ └── images
│ └── logo.svg
├── index.css
├── index.js
└── serviceWorker.js
7 directories, 14 files
Initial screen.
The Score
increses while same images are not clicked.
The Score
resets when the same image is clicked. If it’s the highest score, Top Score
is updated.