Courses / Creating A Fullstack Linktree Clone (Legacy)

Testing On Mobile & Generating Mobile Page View Data

This lesson covers setting up Ngrok with Rails 7 in order to server the website through a tunnel. This lets you visit the website on a mobile device (Fig. 1) in order to see how the layout looks on mobile. Because Ngrok generates a unique URL every time, you'll need to allow list a regular expression for Ngrok. (Fig. 2)

Additionally, this allows you to generate actual mobile device views, which can then be seen in the pie chart. (Fig. 3)

Fig. 3 - DonutChart showing page views. Donut charts can be made by replacing pie_chart() with donut_chart(), no other changes are required.

Exercises

No exercises in this lesson yet.