Skip to main content

Coursework

0) Flipped Classroom Practice (3h)

Exercise 1.1

Think carefully and try to answer the following questions:

⏰ Don't spend longer than 30 minutes on this exercise 📝 Make a note of any questions you've struggled to answer - raise these on Slack before Saturday's session

a) Define an interface? (Think about the answer in multiple contexts, including programming )

b) Explain why do we need to use an interface in programming? (Advanced)

c)

i) List 3 things that are part of the NodeJS API ii) List 3 things that are part of the Jest API iii) List 3 things that are part of the Spotify API iv) Explain why Jest is not a web-based API and why Spotify is a web-based API.

Submit your responses by responding on the Google Classroom assignment entitled "Prepare for Saturday's class". Verify your answers using discussions on Slack if you're struggling to answer these questions.

Exercise 1.2

⏰ Don't spend longer than 20 minutes on this exercise 📝 Make a note of any questions you've struggled to answer - raise these on Slack before Saturday's session

Pick a couple of the APIs below and experiment with them, modify the requests, report your findings.

:::

Exercise 2.1

⏰ Aim to spend around 1 hour on this exercise 📝 Remember to get support/guidance on Slack if you're blocked with this activity

a) Complete steps 3.1, 3.2 and 3.3 from the 3) Make a Node API section of the syllabus notes found here 👉 https://syllabus.codeyourfuture.io/node/week-1/lesson

b) Once you've set up your server in part a), then complete read and complete the steps in section 3.4 from the syllabus notes found here 👉 https://syllabus.codeyourfuture.io/node/week-1/lesson

:::

Exercise 3.1

⏰ Aim to spend around 1 hour on this exercise 📝 Remember to get support/guidance on Slack if you're blocked with this activity

Read and complete sections 3.4) and 3.5) from the syllabus notes 👉 https://syllabus.codeyourfuture.io/node/week-1/lesson

1) Reading (2 Hours)

Read about HTTP messages

https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview#HTTP_Messages

Express "Getting Started" Documentation:

Read these two pages from the Express "Getting Started" documentation:

If you want some more reading

2) Chrome Dev Tools (2 Hours)

Look at a request in Chrome Dev Tools

In Google Chrome, open dev tools network tab and enter this URL into the browser: http://api.tvmaze.com/shows/82/episodes

Answer the following questions:

What's the status code the server sent back?
What HTTP method did the browser use to make the request?
What is the request path?
What is the first line of the response body?
What is the value of the response header called "Content-Type" ?
What is the value of the request header called "User-Agent"

Submission

Share your answers with the other trainees in your Buddy Group or on your Slack class channel.

Did you get different answers to other people? Ask them how they worked them out!

3) Quote Server API Project (10 hours) 🔑

Take a look at this repository:

https://github.com/CodeYourFuture/Module-Node

In there you fill find the Quote Server folder. The task is to create a Quote Server.

To complete the coursework you should:

  1. Fork the repository
  2. Go into quote-server folder and complete the tasks
  3. Create a pull request back to the original repository

4) Prepare a Presentation (1 hour)

Prepare a VERY simple recap of what we did and what we learned in today's class in Node Week 1.

The presentation should last between 60 and 120 seconds

Time yourselves - that is NOT much time!

Next class we will be presenting a few of them in small groups to each other to recap what we learnt.

NOTE: Slides (or presenting from computer) are NOT allowed.

5) CodeWars (1 hour)

https://docs.codeyourfuture.io/course-processes/running-the-course/codewars#codeyourfuture-collections

Every week you need to complete at least three kata. Spend at least 20 minutes, three times a week, on your kata workout.

Find the collection on the CodeYourFuture account: https://www.codewars.com/users/CodeYourFuture/authored_collections

6) Challenges (Stretch)

Mailing List Server

7) Brag Diary (PD - 30 min)

Write your first entry for your Brag Diary. This will be the record of your achievements, the moments you feel proud about yourself. Think positively, you might find more to write than you think.

Take turns to present your diary entries in your group meetings with your PD buddy.