Skip to content

Commit

Permalink
Merge pull request #60 from LaunchCodeEducation/ticket#16/hugo-submod…
Browse files Browse the repository at this point in the history
…ules

Ticket#16/hugo submodules
  • Loading branch information
jwoolbright23 authored Aug 22, 2024
2 parents f5c242f + 3462cf9 commit 042322e
Show file tree
Hide file tree
Showing 57 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.108.0
HUGO_VERSION: 0.130.0
steps:
- name: Install Hugo CLI
run: |
Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
[submodule "layouts"]
path = layouts
url = https://github.com/LaunchCode-Hugo-Submodules/layouts
[submodule "static"]
path = static
url = https://github.com/LaunchCode-Hugo-Submodules/static
[submodule "archetypes"]
path = archetypes
url = https://github.com/LaunchCode-Hugo-Submodules/archetypes
[submodule "assets"]
path = assets
url = https://github.com/LaunchCode-Hugo-Submodules/assets
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ theme = "hugo-theme-relearn"
canonifyURLs = true

[outputs]
home = ["HTML", "RSS", "JSON"]
home = ["HTML", "RSS", "SEARCH"]

[params]
themeVariant = ["lc-light", "lc-dark-blue", "lc-dark-blue-two"]
Expand Down
6 changes: 3 additions & 3 deletions content/assignments/techjobs-console/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ Blake has now handed the task off to you. You must add a couple of features and
then get feedback from the Company Team.

After you work through the tasks Blake has laid out for you, tackle one
or more of the [bonus missions]({{< relref "./submission/#bonus-missions" >}}).
or more of the [bonus missions]({{% relref "./submission/#bonus-missions" %}}).

## Getting Started

{{% notice blue Note "rocket" %}}
You may need to enable actions within your github repository if you have not done so already. Please refer back to the instructions on how to do so in the [Running the Autograding Tests through Github Actions]({{< relref "../hello-world/#running-the-autograding-tests-through-github-actions" >}}) section of `Assignment 0`
You may need to enable actions within your github repository if you have not done so already. Please refer back to the instructions on how to do so in the [Running the Autograding Tests through Github Actions]({{% relref "../hello-world/#running-the-autograding-tests-through-github-actions" %}}) section of `Assignment 0`
{{% /notice %}}

In Canvas, **Graded Assignment #1: TechJobs Console** contains a GitHub starter code repo link. Fork the repository to your personal profile, copy the repo’s URL for cloning, and open up IntelliJ. and then set up the project in IntelliJ. Refer back to the setup instructions from [assignment 0]({{< relref "../hello-world/#getting-started" >}}) for more details.
In Canvas, **Graded Assignment #1: TechJobs Console** contains a GitHub starter code repo link. Fork the repository to your personal profile, copy the repo’s URL for cloning, and open up IntelliJ. and then set up the project in IntelliJ. Refer back to the setup instructions from [assignment 0]({{% relref "../hello-world/#getting-started" %}}) for more details.

Before diving in and starting to code, make sure you understand what the code
you've been given does. Since you're starting with a functioning---albeit
Expand Down
2 changes: 1 addition & 1 deletion content/assignments/techjobs-console/submission/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Before submitting, make sure that your application:
{{< youtube Ai9ceGDWkac >}}

### How to Submit
To turn in your assignment and get credit, follow the [submission instructions]({{< relref "../../hello-world/#submitting-your-work-on-canvas" >}}).
To turn in your assignment and get credit, follow the [submission instructions]({{% relref "../../hello-world/_index.md#submitting-your-work-on-canvas" %}}).

### Bonus Missions

Expand Down
4 changes: 2 additions & 2 deletions content/assignments/techjobs-mvc/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ lastMod: 2023-09-23T09:59:59-05:00 # UPDATE ANY TIME CHANGES ARE MADE

Set up a local copy of the project:

1. In Canvas, **Graded Assignment #3: TechJobs (MVC Edition)** contains a GitHub repo link. Fork, clone, and then set up the project in IntelliJ. Refer back to the instructions from [Assignment 0]({{< relref "../../hello-world/#getting-started">}}) for details.
1. In Canvas, **Graded Assignment #3: TechJobs (MVC Edition)** contains a GitHub repo link. Fork, clone, and then set up the project in IntelliJ. Refer back to the instructions from [Assignment 0]({{% relref "../../hello-world/#getting-started" %}}) for details.
1. Launch the application (via the Gradle pane, *Tasks > Application >
bootRun*) to make sure it starts up. Then shut it down.
1. Run the autograding tests. The tests for this assignment are set up the same way as for [Assignment 2]({{< relref "../../techjobs-oo/task7/#run-the-tests" >}}). There are four tasks for this assignment, but the first doesn't require any coding on your part. Therefore, there are 3 test files (for tasks 2-4). As with Assignment 2, we recommend that you only run the tests for the task you are currently working on.
1. Run the autograding tests. The tests for this assignment are set up the same way as for [Assignment 2]({{% relref "../../techjobs-oo/task7/#run-the-tests" %}}). There are four tasks for this assignment, but the first doesn't require any coding on your part. Therefore, there are 3 test files (for tasks 2-4). As with Assignment 2, we recommend that you only run the tests for the task you are currently working on.

## Review the Code

Expand Down
2 changes: 1 addition & 1 deletion content/assignments/techjobs-mvc/submission/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You might also want to check your app's behavior against that of [our demo app](

## How to Submit

To turn in your assignment and get credit, follow the [submission instructions]({{< relref "../../hello-world/#submitting-your-work-on-canvas" >}}).
To turn in your assignment and get credit, follow the [submission instructions]({{% relref "../../hello-world/#submitting-your-work-on-canvas" %}}).

## Bonus Missions

Expand Down
8 changes: 4 additions & 4 deletions content/assignments/techjobs-oo/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ In this project, you’ll show that you can:
### Get the Starter Code

{{% notice blue Note "rocket" %}}
You may need to enable actions within your github repository if you have not done so already. Please refer back to the instructions on how to do so in the [Running the Autogtrading Tests through Github Actions]({{< relref "../hello-world/#running-the-autograding-tests-through-github-actions" >}}) section of `Assignment 0`
You may need to enable actions within your github repository if you have not done so already. Please refer back to the instructions on how to do so in the [Running the Autogtrading Tests through Github Actions]({{% relref "../hello-world/#running-the-autograding-tests-through-github-actions" %}}) section of `Assignment 0`
{{% /notice %}}

In Canvas, **Graded Assignment #2: Object-Oriented Edition** contains a GitHub starter code repo link. Fork the repository to your personal profile, copy the repo’s URL for cloning, and open up IntelliJ. and then set up the project in IntelliJ. Refer back to the setup instructions from [assignment 0]({{< relref "../hello-world/#getting-started" >}}) for more details.
In Canvas, **Graded Assignment #2: Object-Oriented Edition** contains a GitHub starter code repo link. Fork the repository to your personal profile, copy the repo’s URL for cloning, and open up IntelliJ. and then set up the project in IntelliJ. Refer back to the setup instructions from [assignment 0]({{% relref "../hello-world/#getting-started" %}}) for more details.

## Introduction
Sally has gotten the ball rolling by adding a `Job` class, along with classes to represent the individual properties of a job: `Employer`, `Location`, `PositionType`, and `CoreCompetency`. She completed the Employer class, and she left you the task of filling in the others.
Expand Down Expand Up @@ -112,7 +112,7 @@ If we were to store these four new properties as strings within the `Job` class,

### Running the Autograding Tests

Before diving into your tasks, review [Assignment #0: Hello, World!]({{< relref "../hello-world/_index.md" >}}) for details on running the autograding tests for this assignment. This assignment has many more tests than the previous two, so we’ve organized them into separate files.
Before diving into your tasks, review [Assignment #0: Hello, World!]({{% relref "../hello-world/_index.md" %}}) for details on running the autograding tests for this assignment. This assignment has many more tests than the previous two, so we’ve organized them into separate files.

{{< rawhtml >}}
<img src="figures/test-files.png" alt="File tree image">
Expand Down Expand Up @@ -150,4 +150,4 @@ The list below provides a general overview of your assigned tasks. Specific deta
1. Use TDD to design and code a custom `toString` method for the `Job` class.
1. Use inheritance to DRY the code within `Employer`, `Location`, `CoreCompetency`, and `PositionType`.

[Next]({{< relref "../../../assignments/techjobs-oo/task1/index.md" >}})
[Next]({{% relref "../../../assignments/techjobs-oo/task1/index.md" %}})
2 changes: 1 addition & 1 deletion content/assignments/techjobs-oo/task1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ public class Employer {

1. The second constructor (lines 11 - 14) assigns `aValue` to the `value` field. However, it ALSO initializes `id` for the object by calling the first constructor with the `this();` statement. Including `this();` in any `Employer` constructor makes initializing id a default behavior.

[Next]({{< relref "../../../assignments/techjobs-oo/task2/index.md" >}})
[Next]({{% relref "../../../assignments/techjobs-oo/task2/index.md" %}})

4 changes: 2 additions & 2 deletions content/assignments/techjobs-oo/task2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ Be careful, though. If you forget to remove `setID`, then users can change the `
Open the class file. This time the constructors, getters, and setters are done. Sally’s comments direct you to where you need to add the custom methods.

1. Code a `toString` method that just returns the `value` of a `PositionType` object.
1. Use the _Generate_ option again to add the `equals` and `hashCode` methods. Refer to the [Classes and Objects Part 2]({{< relref "../../../../classes-part-2/reading/intellij-shortcut/index.md" >}}) IntelliJ Generator Shortcut section if you need a quick review.
1. Use the _Generate_ option again to add the `equals` and `hashCode` methods. Refer to the [Classes and Objects Part 2]({{% relref "../../../../classes-part-2/reading/intellij-shortcut/index.md" %}}) IntelliJ Generator Shortcut section if you need a quick review.
1. Assume that two `PositionType` objects are equal when their id fields match.

{{% notice green "Tip" "rocket" %}}
Now would be a good time to `save`, `commit`, and `push` your work up to GitHub.
{{% /notice %}}

[Next]({{< relref "../../../assignments/techjobs-oo/task3/index.md" >}})
[Next]({{% relref "../../../assignments/techjobs-oo/task3/index.md" %}})


2 changes: 1 addition & 1 deletion content/assignments/techjobs-oo/task3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Now open the `Job` file. OOF! There are a lot of fields declared and not much el
Now would be a good time to `save`, `commit`, and `push` your work up to GitHub.
{{% /notice %}}

[Next]({{< relref "../../../assignments/techjobs-oo/task4/index.md" >}})
[Next]({{% relref "../../../assignments/techjobs-oo/task4/index.md" %}})
2 changes: 1 addition & 1 deletion content/assignments/techjobs-oo/task4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ Time to `save`, `commit`, and `push` your work to GitHub again.
{{% /notice %}}


[Next]({{< relref "../../../assignments/techjobs-oo/task5/index.md" >}})
[Next]({{% relref "../../../assignments/techjobs-oo/task5/index.md" %}})

2 changes: 1 addition & 1 deletion content/assignments/techjobs-oo/task5/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ In the `Job` class, create a `toString` method that passes the first test. Since

Cool! Your `Job` class is now complete and operates as desired.

[Next]({{< relref "../../../assignments/techjobs-oo/task6/index.md" >}})
[Next]({{% relref "../../../assignments/techjobs-oo/task6/index.md" %}})
2 changes: 1 addition & 1 deletion content/assignments/techjobs-oo/task6/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ Rerun your unit tests to verify that your classes and methods still work.
You know you need to do this, but here is the reminder anyway. `Save`, `commit`, and `push` your work to GitHub.
{{% /notice %}}

[Next]({{< relref "../../../assignments/techjobs-oo/task7/index.md" >}})
[Next]({{% relref "../../../assignments/techjobs-oo/task7/index.md" %}})
2 changes: 1 addition & 1 deletion content/assignments/techjobs-persistent/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You will once again work with the `Tech Jobs` application. This time around you'
functionality by using Spring Data. You will be responsible for completing the code to allow users
to create new job data.

Your final application will have the same list and search capabilities as your [Tech Jobs (MVC Edition)]({{< relref "../techjobs-mvc" >}}) but
Your final application will have the same list and search capabilities as your [Tech Jobs (MVC Edition)]({{% relref "../techjobs-mvc" %}}) but
you'll need to do the work to connect the project to a database for storing user-submitted job data.

Each of the four sections of this assignment will also ask you to demonstrate your SQL skills under an item labelled **SQL TASK**.
Expand Down
4 changes: 2 additions & 2 deletions content/assignments/techjobs-persistent/part-four/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ As before, there are a few tests in `TestTaskFour` that have been commented out
## Updating `HomeController`, Again

You next need to wire `HomeController` with the skills data in order to add skills objects to a new job.
This will look almost precisely like what you have done for employer data above. Refer back to [that section]({{< relref "../part-three/index.md#updating-homecontroller" >}}) to inject the controller with skill data.
This will look almost precisely like what you have done for employer data above. Refer back to [that section]({{% relref "../part-three/index.md#updating-homecontroller" %}}) to inject the controller with skill data.

There is, however, one difference to keep in mind. The job form being processed only accepts one employer by an `id` field. Many skills can be added to a single job, though. Here's what we'll say about how to send the right skills along with the job form.

Expand All @@ -64,7 +64,7 @@ As with a job's employer, you only need to query your database for skills if the

## It's Your Job, List It and Re-Search It

You now have all the tools in place to re-implement the list and search views from [TechJobs MVC]({{< relref "../../techjobs-mvc" >}}).
You now have all the tools in place to re-implement the list and search views from [TechJobs MVC]({{% relref "../../techjobs-mvc/_index.md" %}}).

1. In the `ListController` class, add fields for `EmployerRepository ` and `SkillRepository`, both annotated with `@Autowired`.
1. You'll also need to pass the employer and skill data from those repositories into the view template rendered at `list/`. Add the right `model.addAttribute(name, value)` statements to pass this info into `templates/list.html`.
Expand Down
2 changes: 1 addition & 1 deletion content/assignments/techjobs-persistent/part-one/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ locally in the browser at `http://localhost:8080` (unless of course you have cha

Your running application still has limited functionality. You won't yet be able to add a job with the *Add Job* form. You also
won't yet be able to view the list of jobs or search for jobs - but this is mostly because you have no job data. Move on to
[Part 2]({{< relref "../part-two/index.html" >}}) below to start adding these functionalities.
[Part 2]({{% relref "../part-two/index.html" %}}) below to start adding these functionalities.
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ You have changed the architecture of your job table. You will still be able to a
The *List* and *Search* functionality still isn't quite fixed so to view a job in the application, make a note
of the job's id in the SQL table. Back in your browser, enter the path for `/view/{jobId}`.

When everything works, move on to [Part 4]({{< relref "../part-four/index.html" >}}) below.
When everything works, move on to [Part 4]({{% relref "../part-four/index.html" %}}) below.
2 changes: 1 addition & 1 deletion content/assignments/techjobs-persistent/part-two/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lastEditorGitHub: colinbrock # update any time edits are made after review
lastMod: 2023-09-06 # UPDATE ANY TIME CHANGES ARE MADE
---

You will need to have completed the [setup steps]({{< relref "../part-one/index.html" >}}) before starting this
You will need to have completed the [setup steps]({{% relref "../part-one/index.html" %}}) before starting this
section.

### AbstractEntity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ lastMod: # UPDATE ANY TIME CHANGES ARE MADE

Set up a local copy of the project:

1. In Canvas, find **Graded Assignment #4: TechJobs (Persistent Edition)** and click on the starter code repo link. Fork the repository to your personal profile, copy the repo's URL for cloning, and open up IntelliJ. Refer back to the instructions from [assignment0]({{< relref "../../hello-world/_index.md#getting-started" >}}) for more details.
1. In Canvas, find **Graded Assignment #4: TechJobs (Persistent Edition)** and click on the starter code repo link. Fork the repository to your personal profile, copy the repo's URL for cloning, and open up IntelliJ. Refer back to the instructions from [assignment0]({{% relref "../../hello-world/_index.md#getting-started" %}}) for more details.
1. Launch the application (via the Gradle pane, *Tasks > Application > bootRun*) to make sure it starts up properly. Then shut it down.
<!-- TODO: Link below will need to be updated once assignment 2 is in the book -->
1. The tests for this assignment are set up the same way as for [Tech Jobs OO]({{< relref "../../techjobs-oo" >}}).
1. The tests for this assignment are set up the same way as for [Tech Jobs OO]({{% relref "../../techjobs-oo/_index.md" %}}).

You won't be able to run your application or the tests yet. If you try to do so, you'll see a host of errors relating to the
Spring Data annotations and classes. Some of these have already been used in the code, but the dependency that includes them has not yet been declared. That will be one of your tasks. You'll need to complete [Part 1]({{< relref "../part-one/index.html" >}}) before you can run the application and view it in a browser.
Spring Data annotations and classes. Some of these have already been used in the code, but the dependency that includes them has not yet been declared. That will be one of your tasks. You'll need to complete [Part 1]({{% relref "../part-one/index.html" %}}) before you can run the application and view it in a browser.

That said, it's a good idea to scan the classes and templates even before you're able to execute
`bootRun`. Take a gander at the `Job` class. It will look somewhat similar to the model in [Tech Jobs (MVC Edition)]({{< relref "../../techjobs-mvc" >}}), with a few key differences.
`bootRun`. Take a gander at the `Job` class. It will look somewhat similar to the model in [Tech Jobs (MVC Edition)]({{% relref "../../techjobs-mvc/_index.md" %}}), with a few key differences.

You're no longer using a csv file to load job data, instead, we'll be creating new Job objects via a
user form. The Job data will be stored in a MySQL database that you'll setup in [Part 1]({{< relref "../part-one/index.html" >}}) of this assignment.
user form. The Job data will be stored in a MySQL database that you'll setup in [Part 1]({{% relref "../part-one/index.html" %}}) of this assignment.

As you explore
the starter code, you'll notice that the `JobField` abstract class is no longer present. Your task for
[Part 2]({{< relref "../part-two/index.html" >}}) is to complete the work to persist some of the classes.
[Part 2]({{% relref "../part-two/index.html" %}}) is to complete the work to persist some of the classes.
You'll do this for `Employer` and `Skill` classes, as well as `Job`.

The `Job` class will also look different from how you have last seen it. In [Part 3]({{< relref "../part-three/index.html" >}}) and [Part 4]({{< relref "../part-four/index.html" >}}), you'll add object relational mapping on the `Job` class by refactoring the `employer` and `skills` (formerly `coreCompetency`)
The `Job` class will also look different from how you have last seen it. In [Part 3]({{% relref "../part-three/index.html" %}}) and [Part 4]({{% relref "../part-four/index.html" %}}), you'll add object relational mapping on the `Job` class by refactoring the `employer` and `skills` (formerly `coreCompetency`)
fields.

In your IntelliJ project, you'll see an empty file in the root directory called `queries.sql`. After completing the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ If a test in `TestCommentedTests` fails, this means that you failed to uncomment

## How to Submit

To turn in your assignment and get credit, follow the [Submission Instructions]({{< relref "../../hello-world/_index.md#submitting-your-work-on-canvas" >}})
To turn in your assignment and get credit, follow the [Submission Instructions]({{% relref "../../hello-world/_index.md#submitting-your-work-on-canvas" %}})
Loading

0 comments on commit 042322e

Please sign in to comment.