The final project for Xtern Bootcamp 2018 Session 3. Based on Davey's code.
- Set the current room when you click a room in the sidebar.
- Sync the list of rooms with Firebase (using
base.syncState()
).
- Sync each room's messages separately.
- Add a form to create new rooms.
- Add the re-base package to your project. At the command-line, type:
yarn add re-base
Confirm that re-base
is now listed under dependencies
in package.json
.
- Update
base.js
to initialize and exportRebase
.
Hint: export default Rebase.createClass(db)
- Use
base.syncState()
to sync your messages with Firebase.
- Try to make authentication work with Firebase!
- Create and style more components, based on the
chat-static
content. There should be approximately one CSS file per component.
- Make a
SignIn
component with a form that takes a user name or email. - When the form is submitted, save that user in the
state
of theApp
component. - When
state.user
is not set, show theSignIn
component. - When
state.user
is set, show theMain
component.
Hint: You need to figure out how to do conditional rendering.