fix: clarify part3b backend reference to avoid ambiguity with json-server#4289
Open
Dinokojt7 wants to merge 3 commits into
Open
fix: clarify part3b backend reference to avoid ambiguity with json-server#4289Dinokojt7 wants to merge 3 commits into
Dinokojt7 wants to merge 3 commits into
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.