daily log 01.30.21
Reddit r/Pics Browser
TO SEE:
TO RUN:
yarn start
TO MAKE:
- npx create-react-app react-reddit-pics
- npm install -D eslint prettier
- npx install-peerdeps –dev eslint-config-airbnb
- npm install -D eslint-config-prettier eslint-plugin-prettier
- create .eslintrc.json & .prettierrc
- update settings to
editor.formatOnSave: true
- npm i axios uuid
.eslintrc.json
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"]
},
}
.prettierrc
{
"printWidth": 100,
"singleQuote": true
}
TO HOST ON github pages
- npm i gh-pages –save-dev
- Update package json to include “homepage” and two other options in “scripts”
- NOTE: On github, in settings, for github pages options, branch is gh-pages
- npm run deploy