Loading
Current section: Authenticated Integration 5 exercises
Problem

Integrating Real Database with User Routes

Loading exercise

Transcript

00:00 Now let's bring some of this database goodness to our route that we were testing earlier. This is our username route. We already have the test in here for the user profile when not logged in and the user profile when you are logged in. And so instead of doing this create fake user,

00:14 I want you to delete that and create an actual user. We're going to use a couple utilities to insert that and we already have the setup stuff to handle cleanup for everything now. So you can insert users as you please and those users will automatically get deleted. So let's go ahead and

00:34 update this file to use a real database and I'll see you on the other side.