Skip to content

Latest commit

 

History

History
177 lines (110 loc) · 4.76 KB

week-2.md

File metadata and controls

177 lines (110 loc) · 4.76 KB

Week 2

Roses are red
Violets are blue
Unexpected { on line 32

@kvlly

Table of Contents

Inspiration

HTTP cat by @girlie_mac.

Comic

Compiling by @xkcd.

Slides

Assignments

Transfer (practice)

Downtown & Brooklyn by @trapnation.

In this assignment you’ll learn the basics of HTTP.

Synopsis

  • Practice
  • Time: 1:00h
  • Goals: subgoal 7
  • Due: before lab 3

Tips

  • httpstatuses.com (website) — List of HTTP status codes
  • Stuck? See the Bugs section of the course readme to find a list of troubleshooting tips

Description

Take about 1 hour to follow the transfer tutorial through to completion.

Install:

  1. Clone the be-course-18-19 repository.
  2. cd into /be-course-18-19/examples/transfer
  3. Run npm install --global

…and then start it by running transfer. This tutorial is interactive. Answer any questions it asks you, until completion.

Extra resources

Homework

Listing (feature)

Plan a lifetime adventure by @glenncarstenspeters.

In this assignment you’ll apply your HTTP knowledge in Node by building a static file server with a little help from Express.

Synopsis

  • Practice
  • Time: 5:00h
  • Goals: subgoal s7
  • Due: before lab 3

Tips

Description

Take ± 5 hours to create a server that handles routes and serves static files in Node.js.

Your static server should:

  • Have a couple of different routes (e.g. /about /login)
  • Respond with 404 Not Found
  • Serve static files
    • Images
    • JavaScript
    • CSS
    • Any other?
  • Use a template engine (pug, ejs, handlebars) to dynamically render data
    • Create different partials (includes) for components of your page

Extra resources

Hand in

  1. Push your changes:
    Hand in your progess in your repository on GitHub under your username.

  2. Create an issue:
    Mark this assignment as complete by opening an issue on our GitHub issue tracker. Fill in the issue template with the correct information. Make sure, in your repository, you include the resources used and update your readme.md and wiki with additional information.

  3. Feedback:
    Let us know what you thought of the homework, what part you spend a lot of time on and give us any feedback. Your project will be reviewed and receive feedback, so expect people to read it, and be ready for tips and tops!