Skip to content

Commit

Permalink
Update README.md to include live-server and switch mocha to npm test
Browse files Browse the repository at this point in the history
Changes to ensure new test suite runs as expected, fix CORS error due to using module imports/exports by using live-server instead of just opening the file in browser
  • Loading branch information
lberge17 authored Feb 2, 2024
1 parent 60089ff commit 9bb6ef4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ Use this gif as an example of how the app should work.

- Run `npm install` to install the dependencies.
- Run `json-server --watch db.json` to get the backend started
- Open the `index.html` file on your browser
- Run `npm install -g live-server` to install live-server globally
- Run `live-server` to start the frontend in browser
- Write your code in the `index.js` file
- As you are writing your code out and completing the deliverables ensure that it works on the DOM and passes the tests by running `mocha` in a new terminal in the same directory
- As you are writing your code out and completing the deliverables ensure that it works on the DOM and passes the tests by running `npm test` in a new terminal in the same directory

## Endpoints

Expand Down

0 comments on commit 9bb6ef4

Please sign in to comment.