This example application covers most of the basics of using FusionAuth, including login, protected pages, access controls, and testing. Each of these components are covered in our Getting Started guide at https://fusionauth.io/docs/get-started/start-here/step-1.
Follow each step in that guide to work your way through the code of this application and how it integrates and leverages FusionAuth.