Complete this project in codesandbox.io. Feel free to add any npm dependencies you deem necessary.
To get started:
- Go to codesandbox.io
- Sign in with github
- Create a new project
- Use the import from github feature to import this repository
- Add the functionality listed below
- When you have finished send the link to: daniel.leavitt@9dots.org
If you have any questions or issues while working on this project you can email daniel.leavitt@9dots.org
Add the firebase dependency in codesandbox. Sign up for a free firebase account. Enable the firestore database and google authentication (check the firebase docs for details). Set up the project to use your firebase project.
Important: Because of codesandbox constantly rebuilding initialize the firebase project in a try catch block!
try {
// initialize here
} catch (e) {}
Add a login page that gets rendered if the user is not yet logged in. The user should be able to login using Google. There should also be a way for logged in users to sign out.
Important: Pop open your preview into it's own window for authentication or enable popups on codesandbox.
The project should store all todos in the firestore database. Logged in users should only be able to see their own todos. A user that is logged out should be redirected to the login screen.