This project uses The Cat API - free API to use for making some fancy App, Website or Service.
See Project Demo serviced on GitHub Pages.
-
Clone this repo or downloand zip:
[email protected]:katepysova/CatsApi.git
-
Change your current directory to this project directory.
-
npm install
-
npm run prepare
- to install git pre-commit hook. Does not work not in a git repository. -
git add .husky/pre-commit
- to add git pre-commit hook. -
touch .env
- to create.env
file. -
Add following content to
.env
:
REACT_APP_API_KEY
=Your API key generated here.
REACT_APP_API_URL
=https://api.thecatapi.com/v1
REACT_APP_API_SUB_ID
=Your sub_id. Read about it here.
-
npm run start
- to start the app on the localhost. Open http://localhost:3000 to view it in your browser. -
npm run predeploy
- to build the app for production to thebuild
folder. Your app is ready to be deployed! -
npm run deploy
- to deploy the app on the GitHub Pages. See Notes on client-side routing.
npm run format
- to format and lint the code.