ballercat / ballercat/jambox

Enhance recipes app, add App Router path to validate that flow

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Description

The recipes app right now is using the pages router in next, it'd be nice to validate the App Router works as expected as well.

Figure we could:

- Add an `/app-router` route (via `app/layout.js`, `app/app-router/page.js`)
- Have it take a pokemon name via a query param, e.g. `?name=Pikachu`
- Fetch from the GQL endpoint in a server component

Basically the same as the `getServerSideProps` demo already there

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing recipes app and its getServerSideProps demo to understand the current Pages Router flow and GraphQL endpoint. Then inspect the planned app/layout.js and app/app-router/page.js entry points. Done means an /app-router route accepts a name query parameter and fetches the corresponding recipe data from a server component.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript, next.js
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.