Sprint 1 Design Inspection, Code Inspection, Unit Testing
Incremental and Regression Testing
Sprint 2 Design Inspection, Code Inspection, Unit Testing
Sprint 2 Incremental and Regression Testing
See the docs folder for PDF copies of these documents.
Download and install:
- In a terminal window, navigate to the directory named, 408Proj
- To build the frontend, do the following:
npm install
will install all of the frontend dependencies.npm run dev
will watch all files in client/ for changes, and recompile bundle.js and all other assets.- Extra commands:
npm run build
to produce a minified version of the bundle an all other assets.npm run cleanup
will clean up the snapshots of the frontend testsnpm test
will run the frontend tests
- In a different terminal window from the frontend (probably should use a new one...) do the following:
- Navigate to the directory named 408Proj
mvn install
will install all of the backend dependencies.mvn package
will package up the app and put it in target/. This will also run the backend tests.
You can run the backend with java -jar target/backend-0.0.1-SNAPSHOT.jar
Then navigate to localhost:8080 in your web browser.
npm test
will run all frontend test suites
The output will show in your terminal. If the snapshot tests do not pass, delete the old snapshots that are files that end in .snap and then re-run the tests.
First, install all necessary dependencies with npm install
and mvn install
.
Then, have one terminal session running npm run dev
, which will automatically rebuild
the frontend whenever you make changes. When you make changes to the backend
(or frontend, for that matter), kill the server if you have one running and
run mvn -Pdev package && java -jar target/backend-0.0.1-SNAPSHOT.jar
<--- without npm
or
run mvn package && java -jar target/backend-0.0.1-SNAPSHOT.jar
<--- with npm