Scaffold the Admin Dashboard
Start building an admin dashboard for your application.
We'll cover the following
The admin dashboard
There are many moving parts in setting up a brand new section of an application. We’ll tackle this together to see how we’d go about it in other projects. Our scaffolding will consist of these steps:
- Define our new
Router
entries. - Set up an admin layout.
- Create the
Admin.DashboardController
. - Create the
Admin.Socket
andAdmin.DashboardChannel
. - Create admin JS and CSS.
We’ll move quickly through these steps. Once this is done, we’ll have the proper foundation to build our admin dashboard.
We’ll start with our route definition. Our admin dashboard will be behind an HTTP Basic Auth screen, and luckily there is a library to help with this. Let’s add the basic_auth
library to our mix
file.
Get hands-on with 1400+ tech skills courses.