W05 Assignment: Sacrament Meeting Planner
Overview
Build on your Sacrament Meeting Planner by adding basic authentication flow and meaningful metadata.
Requirements
This week you will add two capabilities to your app:
- Authentication basics: users can sign in and sign out, and at least one protected route redirects unauthenticated users to your login page. This login is for bishoprics to manage the sacrament meeting schedule and details.
- Metadata basics: your app has a site-level metadata default and at least one route with custom metadata (title and description). Add an Open Graph image if available.
Instructions
Leveraging AI
You may use AI to ask conceptual questions, diagnose errors, and generate small snippets. You are responsible for understanding, testing, and explaining all code in your submission.
Review the course AI Policy.
Implement authentication basics
Use this week's Adding Authentication activity as your reference.
- Configure authentication in your app (Auth.js credentials or your selected provider approach from class guidance).
- Create a login page and a sign-out action/button.
- Protect at least one route (for example, your meetings management area) so unauthenticated users are redirected to login.
- Verify the full flow: login, access protected route, and logout.
Implement metadata basics
Use this week's Adding Metadata activity as your reference.
- Add site-level metadata in your root layout (default title/description).
- Add route-specific metadata to at least one key page in your planner.
- Include an Open Graph image (or document why one is not yet available).
- Confirm your page source includes expected title and meta description tags.
Run quick quality checks
- Run local checks before submission:
npm run lint npm run build - Manually test the auth and metadata outcomes in your browser.
- Use AI for a quick correctness review focused on auth flow, route protection, and metadata completeness.
Submission Instructions
Submit the following in the text entry area in Canvas:
Project Links
- GitHub repository URL for your sacrament-meetings repository.
- Vercel deployment URL for the version that includes this week's authentication and metadata updates.
Short Reflection
- A short summary of what you implemented for authentication, including which route you protected.
- A short summary of what metadata you added and where.
- A brief reflection on one challenge and how you resolved it (including AI support, if used).