So now we're ready to start up all of our containers and test our application end to end.
I'll run Docker compose up to start up all of our containers.
So with everything now running, let's head back to postman where we can test out our APIs to make sure
everything is working as expected.
To start off, I'll go ahead and create a new user here using the Auth Users API.
So I've gone and created my user.
I'll now obtain a JWT for it and hit the auth login route.
And now we're going to execute this post request at localhost 3000 slash reservations to actually create
the reservation.
So we'll go ahead and send this reservation off.
And you can see we've successfully created it with a 201 created.
And we get the reservation back which is excellent.
This means our system is working end to end with Prisma and Postgres.
So now if we head back to Pgadmin, I'll go ahead and refresh our databases, and let's go ahead and
check our tables to see the data that we have now to verify everything is working as expected.
So I'll go ahead and right click on our user table and view all rows.
And now we can see the user that we've just created.
So this looks just as we'd expect.
And let's check out the reservations database where we can look at our tables here where we have the
reservation table I'll right click it and view all rows.
And here is the reservation that we just created.
So we can see we have Prisma working end to end.
Our application running in Docker to persist data as we'd expect, generate the latest code from our
schemas and automatically generate these migrations to ensure that the database is always in line with
the schema that we've defined.