We're gonna make a Birb Watching app! A place to track all those 🐦s you see flying around! Here's what we need to do to get started:
- If you have
scat-surprise
, that's the repo we'll be using. Let's change the name:mv scat-surprise birb-watcher
- Make sure you've
npm i
andnpm start
and that it's all working as expected - Do the Auth bit
- Initial Component creation
This is going to be even more simple than React Pinterest was, in the interest of showing off ReactRouter. So only one collection!
If you want your domain to be different than Birbs, feel free to substitute anything else!
- We're going to be creating all of our initial components in
src/components/pages/
. So you'll need to make that directory. We'll talk about why in class- So this means that
Auth.js
will go insrc/components/pages/Auth/Auth.js
- So this means that
- Shouldn't be anything new at this point
- Do what we did in React Pinterst
- Make sure to create your firebase app, enable realtime db, and enable google auth
- Test it locally, push it up, merge it in
- Create the following components:
- EditBirb
- Home
- NewBirb
- SingleBirb
- Each should have an
<h2>
with the name of the component in therender()
- Import and use those in
App
, just to make sure they work - PR that in and you'll be ready to rock and roll