https://pg603-innlevering-a-baade.herokuapp.com/
- Create a READE.md
-
npm init
/root - npm install/root
npm i -D parcel jest prettier babel-jest "@babel/preset-env"
npm i -P react react-dom react-router-dom
- Create client side files
-
npm init
/client - npm install/client
npm i -D parcel jest babel-jest "@babel/preset-env
npm i -P react react-dom react-router-dom
- Create server side files
-
npm init
/server - npm install/server
npm i -D express body-parser
npm i -P nodemon
##Husky
- Install Husky
npm i -D husky
npx husky install
npm set-script prepare "husky install"
npx husky add .husky/pre-commit "npm run format:check"
- Routing requests in app
- Wrap application in
<BrowserRouter
- Wrap route sets in
<Routes>
- Wrap "destinations" in
<Route path="..." element={<SomeElement />} />
- Route with
<Link to="...">
- Wrap application in
- import questions.js
- Return list of random questions
- List multiple choice answers
- Selecting an answer routes to correct/incorrect pages
- keeps score of correct vs. incorrect answers
- Creat new Heroku app linked to pg6301-innlevering repo.
- Successfully deploy branch through Heroku