Skip to content

Latest commit

 

History

History

exercise-1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Exercise 1: Setup the example application

For our first exercise, we want to make sure we can run the subsequent exercises without problems. This means ensuring we have a working app against which to test.

It was created using Facebook's Create React App, so if you have any problems starting up, you can consult their extensive documentation.

Pro tip: This is another good exercise you can do before you get to the workshop 😀

Overview


Success criteria

  • Our webserver should serve the example website (Verbo)

Instructions

Install app dependencies

In each exercise, there is a verbo directory where we will run our app.

  1. In your terminal, cd to the verbo directory.
cd verbo
  1. Install the dependencies.
npm i

Note: npm i is a shorter alias for npm install (two carpal tunnel surgeries and you'd want to type less, too.)

Start the app

npm start

Learn more about special npm "run" commands

You'll see the app spin up and print some info to the console:

npm start

✅ Open the app in your browser at http://localhost:3000. You should now have a working web application to test against with the next exercises!

Verbo app running on localhost port 3000

Leave this tab open, we'll keep it running for the rest of the exercises.


What we learned

  • How to spin up our webserver to serve the example website (Verbo)

Up next

Exercise 2: Install WebDriver.io and write your first test