Skip to content

Commit

Permalink
Merge pull request #349 from UMM-CSci-3601/update-docs
Browse files Browse the repository at this point in the history
Update docs for Fall 2024
  • Loading branch information
NicMcPhee authored Aug 29, 2024
2 parents d39fa62 + 4cbf26d commit 5e56828
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"java.configuration.updateBuildConfiguration": "automatic",
"java.server.launchMode": "Standard",
"cSpell.words": [
"automagically",
"bangbang",
"Checkstyle",
"classpath",
Expand Down
8 changes: 7 additions & 1 deletion LABTASKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,13 @@ api/todos?owner=Blanche&status=complete&limit=12&orderBy=category
```

which would return the first 12 completed to-dos owned by
Blanche ordered by category. Make sure you do the limiting step last so you don't miss any items.
Blanche ordered by category.

:bangbang: If you have a combination of `limit` with other filters,
make sure you do the limiting step **last** so you don't miss any items.
If you limit first to, say, 10 todos, then you might get down to the
requested 10 todos, but then have later filters bring that down to 7
or 5 or even zero. So make sure you limit last!

Each of these if implemented properly should work in the provided client.

Expand Down
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [Running Your project](#running-your-project)
- [Testing Your Project](#testing-your-project)
- [Checking your code coverage](#checking-your-code-coverage)
- [Live updates for Gradle test or run](#live-updates-for-gradle-test-or-run)
- [Continuous Integration with GitHub Actions](#continuous-integration-with-github-actions)
- [Go do the lab!](#go-do-the-lab)
- [Resources](#resources)
Expand Down Expand Up @@ -125,8 +126,11 @@ From the server directory you can use Gradle to run the server:

Your server should now be running on port 4567, the port we've configured Javalin to
run on.
Visit it at [http://localhost:4567][local] in your web browser. The
server will continue to run indefinitely until you stop it
Visit it at [http://localhost:4567][local] in your web browser.

The server will continue to run indefinitely until you stop it. You can
stop it by typing `Control-C` (often written `^C`) in the terminal where
it's running.

## Testing Your Project

Expand Down Expand Up @@ -194,6 +198,24 @@ we've chosen to not over-complicate the project with attempts to test
that code. You are not obliged to provide any coverage for that. You
should make sure your tests cover things like your `ToDoController` and the like, though.

## Live updates for Gradle test or run

By default, if you're running the server with `./gradlew run` and make changes
to your Java code, you have to stop the server (with `^C`) and restart it for
those changes to take effect. Similarly, if you make changes and want to
see if `./gradle test` or `./gradle check` passes, then you have re-run those
commands by typing them in again.

Happily, Gradle gives us the `--continuous` (or `-t` for short) flag to simplify
these use cases. If, for example, you enter `./gradlew --continuous run`, then
Gradle will automagically notice when relevant files have changed, recompile, and
re-run the project. Similarly, you can have `./gradlew --continuous check` running
in a terminal and it will automatically re-run the checks whenever you save changes.

:bangbang: Make sure the terminals running continuous Gradle tasks are visible so
you can see if, for example, tests fail or the project doesn't even compile anymore.
Otherwise you can end up doing a lot of work that builds on broken code.

## Continuous Integration with GitHub Actions

[GitHub Actions][ghactions] is a Continuous Integration tool that performs
Expand Down

0 comments on commit 5e56828

Please sign in to comment.