The video for this lesson is currently being updated, please read the transcript instead.

Protecting item routes

You may be wondering how we're going to create the admin user account. Well, we're not going to be modifying the POST /users endpoint or making another new endpoint, we're actually going to use a script to create one.

Database seed

If you look in the scripts folder which I added in this module, you'll see two files here, seed.js and run_seed.js

Let's take a look at seed.js first.

Seed module

To view the complete lesson you'll need to login or join this course.


Click to load comments...