9. Send real data
9.1. “Stash” our previous edits
We need to configure Git to allow us to “stash” the changes we make so we can move from branch to branch.
Copy and paste the following commands in the Glitch console:
- Add fake user data to the git configuration and “stash” changes
git config --global user.email "you@example.com" && git config --global user.name "Your Name" && git stash
9.2. Checkout branch 3
Let’s “checkout” the next stage of our back end application to start serving up real data upon request.
Copy and paste the following commands in the Glitch console:
- Checkout branch 3
git checkout 3
- Refresh the Glitch file system to see branch 3
refresh
9.3. Follow along with the instructor
Let’s start serving up real data!
- Edit controllers.js
- Test the API endpoint in the browser using different resource parameters