Skip to content

fix: clarify part3b backend reference to avoid ambiguity with json-server#4289

Open
Dinokojt7 wants to merge 3 commits into
fullstack-hy2020:sourcefrom
Dinokojt7:fix/part3b-cors-backend-clarification
Open

fix: clarify part3b backend reference to avoid ambiguity with json-server#4289
Dinokojt7 wants to merge 3 commits into
fullstack-hy2020:sourcefrom
Dinokojt7:fix/part3b-cors-backend-clarification

Conversation

@Dinokojt7
Copy link
Copy Markdown
Contributor

The opening instruction in part3b says:

"Next, let's connect the frontend we made in part 2 to our own backend."

The phrase "our own backend" is ambiguous. A reader could reasonably interpret it as the Part 2 json-server setup, since that backend was also built progressively through the course exercises and lives in the Part 2 project root — it qualifies just as much as "our own backend."

When a reader makes that assumption and updates baseUrl to http://localhost:3001/api/notes while json-server is still running, they get a 404 instead of the CORS error the section is trying to demonstrate. This is because json-server has no /api/notes route — it only serves /notes. The reader then has no clear signal that they are pointed at the wrong backend entirely.

The fix replaces "our own backend" with "the Express backend we built in part 3a" and updates the surrounding sentence to make the Part 3 context explicit, so the reader does not need to make the cognitive leap between parts themselves.

@Dinokojt7
Copy link
Copy Markdown
Contributor Author

Also added Railway to the list of free hosting alternatives alongside Replit and CodeSandBox. It's a purpose-built PaaS with a free tier, no local installations required, and better suited for Node/Express deployment than CodeSandBox. Left both existing options in — happy to remove CodeSandBox if you'd prefer a shorter list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant