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
- Our webserver should serve the example website (Verbo)
In each exercise, there is a verbo
directory where we will run our app.
- In your terminal,
cd
to theverbo
directory.
cd verbo
- 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.)
npm start
Learn more about special npm "run" commands
You'll see the app spin up and print some info to the console:
✅ 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!
Leave this tab open, we'll keep it running for the rest of the exercises.
- How to spin up our webserver to serve the example website (Verbo)