Content
Complete the following tutorials in GitHub Learn:
Note: You need to copy the exercise to your GitHub account, wait a few seconds until it is prepared and refresh the page to see the new Readme file with exercise details.
main and whenever a new pull request is created. You can reuse the example from [name: Integrationon: push: branches: - main pull_request: branches: - main
jobs: test: runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "24" # Can also use 'latest'
- name: Install dependencies
run: npm ci # npm clean install
- name: Run Unit Tests
run: npm test # Run vitest tests (defined in package.json](<https://hub.hackyourfuture.nl/name-Integration-on-push-branches-main-pull_request-branches-main-2d750f64ffc980fc90dcf32c61d733a8>).
Build a simple Express API that returns a random compliment personalized with the user's name.
GET /compliment/:name route{name} as a placeholder{name} with the actual name from the URL (Hint: use req.params)number and a compliment textA nice list of 100 AI generated compliments can be found here. Feel free to use it in your application.
Request:
GET /compliment/Alice
Response:
{
"number": 14,
"compliment": "Hey Alice, your variable names actually make sense."
}
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

Built with ❤️ by the HackYourFuture community · Thank you, contributors
Found a mistake or have a suggestion? Let us know in the feedback form.