Week 10 - Asynchronous programming

Synchronous vs Asynchronous Code

Callbacks

Promises

Asynchronous File I/O

Event Loop

Fetch API

Async/Await and Promise.all()

AI Using GitHub Copilot in VS Code

Practice

Assignment

Core program

Week 10 Assignment

The assignment repository can be found in https://github.com/HackYourAssignment/ with the name cXX-core-week-10 (Replace XX with your cohort number).

Task 1 — Cocktail Recipe CLI

Build a command-line tool that fetches cocktail recipes from TheCocktailDB API and writes the results to a markdown file. You will work with fetch, async/await, and fs/promises.

See https://github.com/HackYourFuture/core-assignment-week-10/blob/main/task-1/README.md for full instructions.

Task 2 — Post Central API Services

Implement the service functions that connect a CLI app to a REST API server. You will make authenticated HTTP requests (GET, POST, PUT, DELETE) using fetch and JWT tokens.

See https://github.com/HackYourFuture/core-assignment-week-10/blob/main/task-2/README.md for full instructions.

Submission

Follow the Assignment submission guide to learn how to submit the assignment


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

CC BY-NC-SA 4.0 Icons

*https://hackyourfuture.net/*

Found a mistake or have a suggestion? Let us know in the feedback form.