Austin Coding Academy
Web Workbook
Claiming your workbook
- Make sure you are signed into GitHub
- Here's a video explaining how to do it
- Navigate into the project directory:
cd web-workbook
- Run
npm install
in your terminal
Starting server
- Run
npm start
in your terminal
- Navigate to this IP Address in your browser:
http://127.0.0.1:8080
.
- To break out of your server, press
ctrl
+ c
Lint your code
- Run
npm run lint
in your terminal
- HTML Lint checks for HTML Syntax errors (e.g. indentations and tag closures).
- CSS Lint checks for CSS erros (e.g indentation, tag closures, duplicated properties).
- ES Lint checks for proper JavaScript syntax (e.g. indentation and default style guide).
- To avoid Lint errors, be sure to indent with 2 spaces (hitting the space bar twice).
- If there are no errors, your code has passed the Lint Process.
- The terminal will say something like this:
> web-workbook@1.0.0 lint /Users/cLo/Desktop/web-workbook
> htmllint {*.html,./**/*.html} && stylelint ./**/*.css && eslint --config .eslint.json .
[htmllint] found 0 errors out of 18 files
Run tests
Tic-Tac-Toe
- Run
npm test 08week/tic-tac-toe/test.js
in your terminal
Towers Of Hanoi
- Run
npm test 09week/towers-of-hanoi/test.js
in your terminal