Complete solution (100% reference)
index.html- Main HTML pagescript.js- JavaScript logicstyles.css- Styling and layoutpackage.json- Dependenciessetup.sh- Setup scriptREADME.md- Instructions (below)💡 Download the ZIP, extract it, and follow the instructions below to get started!
This is the complete reference implementation for Project 06: Dashboard. Use this as a teaching resource to understand the full solution architecture.
/) - Activity overview with statistics/analytics) - Data visualization and metrics/profile) - User account managementgit clone <repo-url>
cd Web-3-Final-Project-main
npm install
npm run dev
The app will be available at http://localhost:5173 (or as indicated in the terminal).
src/firebase.jssrc/ - Source code
routes/ - Svelte routesstores/ - Svelte stores (e.g., authentication)firebase.js - Firebase configurationapp.html - Main HTML templatesrc/
├── routes/
│ ├── +layout.svelte # Auth guard (protects all routes)
│ ├── +page.svelte # Main Dashboard
│ ├── analytics/
│ │ └── +page.svelte # Analytics page
│ ├── profile/
│ │ └── +page.svelte # Profile page
│ ├── login/
│ │ └── +page.svelte # Login page
│ └── signup/
│ └── +page.svelte # Signup page
├── lib/
│ ├── Navbar.svelte # Navigation component
│ ├── DashboardCard.svelte # Statistics card component
│ ├── ActivityFeed.svelte # Activity list component
│ └── QuickActions.svelte # Quick action buttons
├── stores/
│ └── authStore.js # Authentication state management
└── firebase.js # Firebase configuration
All routes have been tested and verified:
This solution demonstrates:
Students should follow the Template (not this solution) which has TODOs guiding them through the implementation.
This project works on StackBlitz with:
If you encounter any issues:
rm -rf node_modules && npm install.env file exists with Firebase credentialsMIT