Skip to content

Conversation

@brookslybrand
Copy link
Contributor

Simplified version of #10844

Demonstrates basic setup of fetch-router

  • server.ts -- createRequestListener from @remix-run/node-fetch-server to listen to requests and call router.fetch
  • routes.ts -- route definitions, leverages formAction and resources for simple CRUD routes
  • router.ts -- sets up middleware and route handlers for routes defined in routes.ts
fetch-router-demo.yafw.balanced.mp4

Copy link
Member

@mjackson mjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks, @brookslybrand 🙏

@MichaelDeBoey MichaelDeBoey linked an issue Nov 19, 2025 that may be closed by this pull request
@MichaelDeBoey MichaelDeBoey changed the title Brooks/fetch router nodejs demo feat(fetch-router): add Node.js demo Nov 19, 2025
@brookslybrand brookslybrand merged commit 90f397f into main Nov 19, 2025
4 checks passed
@brookslybrand brookslybrand deleted the brooks/fetch-router-nodejs-demo branch November 19, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add node.js demo to fetch-router

4 participants