May 2018
Intermediate to advanced
492 pages
12h 3m
English
The first step is to create a user data model for the Notes application. Rather than retrieving data from data files or a database, it will use REST to query the server we just created. We could have created user model code that directly accesses the database but, for reasons already discussed, we've decided to segregate user authentication into a separate service.
Let us now turn to the Notes application, which you may have stored as chap08/notes. We'll be modifying the application, first to access the user authentication REST API, and then to use Passport for authorization and authentication.
For the test/admin scripts that we created earlier, we used the restify-clients module. That package is ...
Read now
Unlock full access