Scaffold the Admin Dashboard
There are a lot of moving parts in setting up a brand new section of an application. We’ll tackle this together so you can see how you’d go about it in other projects. Our scaffolding will consist of these steps:
- Define our new Router entries.
- Setup an admin layout.
- Create the Admin.DashboardController.
- Create the Admin.Socket and Admin.DashboardChannel.
- Create admin JS and CSS.
We’ll move quickly through these steps. Once this is done, we’ll have the right foundation to build our admin dashboard.
Unit Tests for the Dashboard | |
---|---|
You will find unit tests for most of the modules we create in the sneakers_23_admin/test/ folder. ... |
Get Real-Time Phoenix now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.