Exercise 12: Setting up the Database

Let's go back to where we left off in the Exercise 11: Validating a Request of Chapter 2, Building the API – Part 1. In this example, we will be using MySQL as our database of choice. Make sure your machine is set up with MySQL and MySQL Workbench:

Use the Code/Lesson-3/exercise-a folder for your reference.
  1. Open MySQL Workbench. Click on the + button to create a connection:
  1. Add the connection name as packt, username as root, and the password (if any). Click on Test Connection to see if the connection is correct, then click on OK:
  1. Click on OK to create the connection.
  1. Now, click on the connection, ...

Get Beginning API Development with Node.js now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.