Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 3.73 KB

File metadata and controls

61 lines (35 loc) · 3.73 KB

#Lesson 1 - Websites & Webservers

##Introduction

Google Coder allows students to create simple, fun and subtly educational web content that can all be made with Coder and Raspberry Pi. It’s free software that turns a Raspberry Pi into a simple, tiny, personal web server and web-based development environment; just what you need for crafting HTML, CSS and Javascript while you’re learning to code.

Hopefully you’ve already downloaded and installed Coder for Raspberry Pi from the offical Google Coder website. If you haven’t (or aren’t sure what Coder is) you can read about it here: http://goo.gl/coder.

Learning Objectives

  • Know how websites are accessed on the World Wide Web
  • Understand the basic functions of a webserver
  • Be able to set up and use a Raspberry Pi as a webserver with Google Coder

Learning Outcomes

###All students are able to:

  • Know how to plug the components of a Raspberry Pi together
  • Access their Coder webserver, and the pages preinstalled on it, with a web browser
  • Explain how websites are accessed on the World Wide Web

###Most students are able to:

  • Edit some basic HTML code and explain what it does
  • Name the functions of a webserver

###Some students are able to:

  • Explain the importance of setting a password on a webserver

Lesson Summary

  • An introduction to websites and webservers
  • A demonstration of how a Raspberry Pi can be used as a webserver to host websites using Google Coder
  • Setting up and connecting a Raspberry Pi with a password
  • Starting and editing a Coder app

Starter

Have a demonstration Raspberry Pi already connected and Google Coder software running. Hold up a Raspberry Pi board and ask the students what they think it is. Explain that it’s actually a computer and that in the coming lessons they’re going to do something special with it. Instead of running apps and games other people have created for them, they’re going to learn to create and host websites on it.

Explain to students the concept of a webserver and how websites are created, stored and accessed on the World Wide Web.

Main Development

  1. Demonstrate to the class how to connect all the Raspberry Pi components together in the correct order and how to boot it. While they are connecting the components, ask the class to name and describe each one. An alternative demonstration would be to leave out the memory card and attempt to boot the Pi, which will fail. You can then describe the memory card as something that contains instructions to tell the Raspberry Pi how to start.

  2. Split the students into pairs and issue an an SD card configured for multiple use to each pair. It's recommended that you number the cards and make a note of which group has each card, as they will need to use the same card each lesson in this scheme of work. Allow the students to set up and power up their Raspberry Pi Google Coder webservers using these student instructions.

  3. Once students have connected to their Raspberry Pi Coder server, it will ask them to set a password. This is not necessary, but it could be used as a opportunity to discuss the importance of security on webservers, and why this might be important on the World Wide Web.

  4. Students should open the Hello Coder webpage by clicking on the icon. They should then click on the edit button to see the HTML code that makes up the webpage. Students can change some of the writing to see what happens to the page.

Plenary

Pairs should be invited to demonstrate to the class what they did to the Hello Coder webpage. Following this, a discussion should be held about how the webserver works.

Homework

Students should be asked to think of their favourite TV programme, game, book or item and write a review of it ready for the next lesson.