This repository contains all the bits related to the Cricket application hosted on GitHub Pages.
Cricket is a PWA (Progressive Web Application) that can be installed on any device through the browser.
First, clone the cricket-app
repository:
# HTTPS
git clone https://github.com/lgaspari/cricket-app.git
# SSH
git clone git@github.com:lgaspari/cricket-app.git
Then, move to the folder:
cd cricket-app/
This repository uses yarn
for managing the project's packages:
yarn install # or simply `yarn`
Now, you should be able to start the application:
yarn start
After running the command above, the application should be opened automatically on your default browser, else you can do open it manually by clicking the following link: http://localhost:3000/cricket-app.
Therefore, you can deploy the application (if needed) on GitHub Pages:
yarn deploy
The above command will take care of the following actions:
- Cleaning up the
build/
folder - Building the application
- Deploying the application using the latest build
yarn test
yarn lint
.
├── build/ # Generated after running `yarn build`
├── node_modules/ # Generated after running `yarn install`
├── public/
│ ├── assets/
│ │ ├── audios/ # Cricket sounds
│ │ ├── icons/ # Favicon assets
│ │ └── images/ # Cricket images
│ ├── favicon.ico
│ ├── index.html
│ └── manifest.json
├── src/ # Source code bits
│ ├── components/
│ └── index.tsx
├── .gitignore
├── package.json
├── README.md
├── tsconfig.json
└── yarn.lock
- Deployment: gh-pages
- Linter: eslint
- Tests: @testing-library/react
- Assets generator: pwa-asset-generator
- Favicon generator: RealFaviconGenerator
- Folder structure generator: tree.nathanfriend.io
- SVG optimizations: SVGOMG