Authenticated App
What You'll Build
Example Structure
example-authenticated-app/
├── src/
│ ├── components/
│ │ └── ProtectedRoute.tsx # Route protection wrapper
│ ├── pages/
│ │ ├── LandingPage.tsx # Public home page
│ │ ├── AboutPage.tsx # Public about page
│ │ ├── LoginPage.tsx # Login page
│ │ ├── DashboardPage.tsx # Protected dashboard
│ │ ├── ProfilePage.tsx # Protected profile
│ │ └── SettingsPage.tsx # Protected settings
│ ├── App.tsx # Main app with routing
│ └── main.tsx # App entry point
└── package.jsonRoutes
Code for Each Page
App.tsx - Main Application
ProtectedRoute.tsx - Route Protection
LandingPage.tsx - Home Page
AboutPage.tsx - About Page
LoginPage.tsx - Login Page
DashboardPage.tsx - Protected Dashboard
ProfilePage.tsx - User Profile
SettingsPage.tsx - Account Settings
Setup & Installation
Prerequisites
Get Deva Credentials
Install and Run
Test the App
Notes
Related Documentation
Last updated