Basic Server Setup for JWT Authentication

Share this video with your friends

Send Tweet

Creating the basic node server to serve up random users via API endpoints.

Kevo
Kevo
~ 10 years ago

I found that the 'case' has changed to lowercase on faker.Helpers and faker.Image.

The code as presented did not work for me until I changed it to:

var user = faker.helpers.userCard(); user.avatar = faker.image.avatar();

Pavel
Pavel
~ 10 years ago

var user = faker.helpers.userCard(); user.avatar = faker.image.avatar();

Yeah, that helps! I think that needs to be mentioned somewhere in lesson

Aron Rodrigues
Aron Rodrigues
~ 8 years ago

What editor are you using?

Kent C. Dodds
Kent C. Dodds(instructor)
~ 8 years ago

In this video I'm using Webstorm, but I use Atom these days: https://github.com/kentcdodds/ama/issues/113