4. Classes and Objects
Activity 4.01: Creating a User Model Using Classes, Objects, and Interfaces
Solution:
In this activity, we'll be building a user authentication system that will pass login data to a backend API to register and sign users into our baseball scorecard application. Perform the following steps to implement this activity:
- Visit the following GitHub repository and download the activity project containing the specs and configuration elements: https://packt.link/oaWbW.
The
activity-solution
directory contains the completed solution code, and theactivity-starter
directory provides the basic start code to work with. - Open the Visual Studio Code editor and then open the terminal. Change into the
activity-starter
directory in the terminal or command prompt and run the following command to install the dependencies:npm install
You will now see the following files in the
activity-starter
directory: - Open the
auth...