Skip to content
Permalink
Browse files
fixed paths
  • Loading branch information
aa7401 committed Oct 12, 2018
1 parent cceb37c commit 8ebd6d02c03f53e2d72b87f176c7cf3572fa75eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
@@ -1,11 +1,11 @@

# Programming Refresher Express
# Using Test-Driven Development with Express

If you are completing this worksheet it is assumed that you are already familiar with both NodeJS and the `Express` package that is used to build dynamic websites. This worksheet will serve as a refresher whilst learning how to use a technique called **Test-Driven Development** which you will need to apply on a regular basis during the remainder of this module.

If you are not familiar with NodeJS and Express ask your lab tutor for additional resources.

Navigate to the `exercises/01_prof_dev/express/` directory which contains a simple dynamic website that uses the **Express** web server and the **Handlebars** templating engine. Examine the folder structure and you will see that there are several directories:
Navigate to the `exercises/02_tdd/express/` directory which contains a simple dynamic website that uses the **Express** web server and the **Handlebars** templating engine. Examine the folder structure and you will see that there are several directories:

```
.
@@ -5,7 +5,7 @@ If you are completing this worksheet it is assumed that you are already familiar

If you are not familiar with API design or the use of NodeJS and Restify ask your lab tutor for additional resources.

Navigate to the `exercises/01_prof_dev/web_api/` directory which contains a simple web api built using **NodeJS** and the [restify](http://restify.com) package. Examine the folder structure and you will see that there are several directories:
Navigate to the `exercises/02_tdd/web_api/` directory which contains a simple web api built using **NodeJS** and the [restify](http://restify.com) package. Examine the folder structure and you will see that there are several directories:

```
├── __tests__
@@ -12,7 +12,7 @@ Start by installing the [Mosquitto Tools](https://www.eclipse.org/mosquitto/down

If you are using MacOS you should install the [Brew Package Manager](https://brew.sh) and use this to install Mosquitto using `brew install mosquitto`.

If you are using Ubuntu you can install using`sudo apt install mosquitto`.
If you are using Ubuntu you can install using`sudo apt install mosquitto`. This also works for most online IDEs.

```
mosquitto_sub -h test.mosquitto.org -t "#" -v
@@ -1,7 +1,7 @@

# Building Websites to Subscribe to MQTT Data

This worksheet builds on the **Publish Subscribe** one. Make sure you have finished this before starting. In this worksheet you will learn how to use the TDD methodology to develop websites that subscribe to MQTT brokers. You can find the exercise files in the `02_mqtt_javascript/` directory.
This worksheet builds on the **Publish Subscribe** one. Make sure you have finished this before starting. In this worksheet you will learn how to use the TDD methodology to develop websites that subscribe to MQTT brokers. You can find the exercise files in the `exercises/02_tdd/web_client/` directory.

## 1 Basic MQTT Client

0 comments on commit 8ebd6d0

Please sign in to comment.