├── .gitignore ├── README.md ├── firebase-debug.log ├── package.json ├── public ├── 404.html ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.css ├── App.js ├── components │ └── auth.js ├── config │ └── firebase.js └── index.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `yarn start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `yarn test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `yarn build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `yarn eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. 39 | 40 | You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `yarn build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /firebase-debug.log: -------------------------------------------------------------------------------- 1 | [debug] [2023-01-28T22:41:38.230Z] ---------------------------------------------------------------------- 2 | [debug] [2023-01-28T22:41:38.231Z] Command: /opt/homebrew/Cellar/node/18.11.0/bin/node /opt/homebrew/bin/firebase init 3 | [debug] [2023-01-28T22:41:38.231Z] CLI Version: 11.21.0 4 | [debug] [2023-01-28T22:41:38.231Z] Platform: darwin 5 | [debug] [2023-01-28T22:41:38.231Z] Node Version: v18.11.0 6 | [debug] [2023-01-28T22:41:38.232Z] Time: Sat Jan 28 2023 14:41:38 GMT-0800 (Pacific Standard Time) 7 | [debug] [2023-01-28T22:41:38.232Z] ---------------------------------------------------------------------- 8 | [debug] 9 | [debug] [2023-01-28T22:41:38.233Z] >>> [apiv2][query] GET https://firebase-public.firebaseio.com/cli.json [none] 10 | [debug] [2023-01-28T22:41:38.243Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] 11 | [debug] [2023-01-28T22:41:38.243Z] > authorizing via signed-in user (machadao1407@gmail.com) 12 | [info] 13 | ######## #### ######## ######## ######## ### ###### ######## 14 | ## ## ## ## ## ## ## ## ## ## ## 15 | ###### ## ######## ###### ######## ######### ###### ###### 16 | ## ## ## ## ## ## ## ## ## ## ## 17 | ## #### ## ## ######## ######## ## ## ###### ######## 18 | 19 | You're about to initialize a Firebase project in this directory: 20 | 21 | /Users/pedrotech/Documents/YoutubeProjects/firebase-course 22 | 23 | [debug] [2023-01-28T22:41:38.383Z] <<< [apiv2][status] GET https://firebase-public.firebaseio.com/cli.json 200 24 | [debug] [2023-01-28T22:41:38.384Z] <<< [apiv2][body] GET https://firebase-public.firebaseio.com/cli.json {"cloudBuildErrorAfter":1594252800000,"cloudBuildWarnAfter":1590019200000,"defaultNode10After":1594252800000,"minVersion":"3.0.5","node8DeploysDisabledAfter":1613390400000,"node8RuntimeDisabledAfter":1615809600000,"node8WarnAfter":1600128000000} 25 | [info] 26 | === Project Setup 27 | [info] 28 | [info] First, let's associate this project directory with a Firebase project. 29 | [info] You can create multiple project aliases by running firebase use --add, 30 | [info] but for now we'll just set up a default project. 31 | [info] 32 | [debug] [2023-01-28T22:44:07.978Z] > refreshing access token with scopes: [] 33 | [debug] [2023-01-28T22:44:07.979Z] >>> [apiv2][query] POST https://www.googleapis.com/oauth2/v3/token [none] 34 | [debug] [2023-01-28T22:44:07.979Z] >>> [apiv2][body] POST https://www.googleapis.com/oauth2/v3/token [omitted] 35 | [debug] [2023-01-28T22:44:08.187Z] <<< [apiv2][status] POST https://www.googleapis.com/oauth2/v3/token 200 36 | [debug] [2023-01-28T22:44:08.187Z] <<< [apiv2][body] POST https://www.googleapis.com/oauth2/v3/token [omitted] 37 | [debug] [2023-01-28T22:44:08.237Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects pageSize=100 38 | [debug] [2023-01-28T22:44:08.572Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects 200 39 | [debug] [2023-01-28T22:44:08.572Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects [omitted] 40 | [info] i Using project fir-course-beba9 (firebase-course) 41 | [info] 42 | === Hosting Setup 43 | [info] 44 | [info] Your public directory is the folder (relative to your project directory) that 45 | [info] will contain Hosting assets to be uploaded with firebase deploy. If you 46 | [info] have a build process for your assets, use your build's output directory. 47 | [info] 48 | [info] ✔ Wrote public/404.html 49 | [debug] [2023-01-28T22:47:23.392Z] >>> [apiv2][query] GET https://www.gstatic.com/firebasejs/releases.json [none] 50 | [debug] [2023-01-28T22:47:23.554Z] <<< [apiv2][status] GET https://www.gstatic.com/firebasejs/releases.json 200 51 | [debug] [2023-01-28T22:47:23.555Z] <<< [apiv2][body] GET https://www.gstatic.com/firebasejs/releases.json {"current":{"version":"9.16.0","browserURL":"https://www.gstatic.com/firebasejs/9.16.0/firebase.js","packageURL":"https://www.gstatic.com/firebasejs/9.16.0/firebase.tgz"},"live":{"version":"9.16","browserURL":"https://www.gstatic.com/firebasejs/live/9.16/firebase.js","packageURL":"https://www.gstatic.com/firebasejs/live/9.16/firebase.tgz"},"components":{"analytics":"https://www.gstatic.com/firebasejs/9.16.0/firebase-analytics.js","app":"https://www.gstatic.com/firebasejs/9.16.0/firebase-app.js","app-check":"https://www.gstatic.com/firebasejs/9.16.0/firebase-app-check.js","auth":"https://www.gstatic.com/firebasejs/9.16.0/firebase-auth.js","auth/cordova":"https://www.gstatic.com/firebasejs/9.16.0/firebase-auth/cordova.js","auth/react-native":"https://www.gstatic.com/firebasejs/9.16.0/firebase-auth/react-native.js","functions":"https://www.gstatic.com/firebasejs/9.16.0/firebase-functions.js","firestore":"https://www.gstatic.com/firebasejs/9.16.0/firebase-firestore.js","firestore/lite":"https://www.gstatic.com/firebasejs/9.16.0/firebase-firestore/lite.js","installations":"https://www.gstatic.com/firebasejs/9.16.0/firebase-installations.js","storage":"https://www.gstatic.com/firebasejs/9.16.0/firebase-storage.js","performance":"https://www.gstatic.com/firebasejs/9.16.0/firebase-performance.js","remote-config":"https://www.gstatic.com/firebasejs/9.16.0/firebase-remote-config.js","messaging":"https://www.gstatic.com/firebasejs/9.16.0/firebase-messaging.js","messaging/sw":"https://www.gstatic.com/firebasejs/9.16.0/firebase-messaging/sw.js","database":"https://www.gstatic.com/firebasejs/9.16.0/firebase-database.js","firestore.memory":"https://www.gstatic.com/firebasejs/9.16.0/firebase-firestore.memory.js"}} 52 | [info] i Skipping write of public/index.html 53 | [info] 54 | [info] i Detected a .git folder at /Users/pedrotech/Documents/YoutubeProjects/firebase-course 55 | [info] i Authorizing with GitHub to upload your service account to a GitHub repository's secrets store. 56 | [info] 57 | [info] Visit this URL on this device to log in: 58 | [info] https://github.com/login/oauth/authorize?client_id=89cf50f02ac6aaed3484&state=68767238&redirect_uri=http%3A%2F%2Flocalhost%3A9005&scope=read%3Auser%20repo%20public_repo 59 | [info] 60 | [info] Waiting for authentication... 61 | [debug] [2023-01-28T22:47:34.241Z] >>> [apiv2][query] POST https://github.com/login/oauth/access_token [none] 62 | [debug] [2023-01-28T22:47:34.241Z] >>> [apiv2][body] POST https://github.com/login/oauth/access_token [stream] 63 | [debug] [2023-01-28T22:47:35.044Z] <<< [apiv2][status] POST https://github.com/login/oauth/access_token 200 64 | [debug] [2023-01-28T22:47:35.045Z] <<< [apiv2][body] POST https://github.com/login/oauth/access_token {"access_token":"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","token_type":"bearer","scope":"read:user,repo"} 65 | [debug] [2023-01-28T22:47:35.061Z] >>> [apiv2][query] GET https://api.github.com/user [none] 66 | [debug] [2023-01-28T22:47:35.481Z] <<< [apiv2][status] GET https://api.github.com/user 200 67 | [debug] [2023-01-28T22:47:35.482Z] <<< [apiv2][body] GET https://api.github.com/user {"login":"machadop1407","id":63262246,"node_id":"MDQ6VXNlcjYzMjYyMjQ2","avatar_url":"https://avatars.githubusercontent.com/u/63262246?v=4","gravatar_id":"","url":"https://api.github.com/users/machadop1407","html_url":"https://github.com/machadop1407","followers_url":"https://api.github.com/users/machadop1407/followers","following_url":"https://api.github.com/users/machadop1407/following{/other_user}","gists_url":"https://api.github.com/users/machadop1407/gists{/gist_id}","starred_url":"https://api.github.com/users/machadop1407/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machadop1407/subscriptions","organizations_url":"https://api.github.com/users/machadop1407/orgs","repos_url":"https://api.github.com/users/machadop1407/repos","events_url":"https://api.github.com/users/machadop1407/events{/privacy}","received_events_url":"https://api.github.com/users/machadop1407/received_events","type":"User","site_admin":false,"name":"Pedro Henrique Machado","company":null,"blog":"","location":"Vancouver, British Columbia, Canada","email":null,"hireable":null,"bio":null,"twitter_username":null,"public_repos":89,"public_gists":0,"followers":4055,"following":10,"created_at":"2020-04-06T20:08:15Z","updated_at":"2023-01-22T20:05:43Z","private_gists":0,"total_private_repos":8,"owned_private_repos":8,"disk_usage":432298,"collaborators":2,"two_factor_authentication":true,"plan":{"name":"free","space":976562499,"collaborators":0,"private_repos":10000}} 68 | [info] 69 | [info] ✔ Success! Logged into GitHub as machadop1407 70 | [info] 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "firebase-course", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.14.1", 7 | "@testing-library/react": "^13.0.0", 8 | "@testing-library/user-event": "^13.2.1", 9 | "firebase": "^9.16.0", 10 | "react": "^18.2.0", 11 | "react-dom": "^18.2.0", 12 | "react-scripts": "5.0.1", 13 | "web-vitals": "^2.1.0" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "build": "react-scripts build", 18 | "test": "react-scripts test", 19 | "eject": "react-scripts eject" 20 | }, 21 | "eslintConfig": { 22 | "extends": [ 23 | "react-app", 24 | "react-app/jest" 25 | ] 26 | }, 27 | "browserslist": { 28 | "production": [ 29 | ">0.2%", 30 | "not dead", 31 | "not op_mini all" 32 | ], 33 | "development": [ 34 | "last 1 chrome version", 35 | "last 1 firefox version", 36 | "last 1 safari version" 37 | ] 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |The specified file was not found on this website. Please check the URL for mistakes and try again.
29 |This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html
file in your project's configured public
directory.
Date: {movie.releaseDate}
111 | 112 | 113 | 114 | setUpdatedTitle(e.target.value)} 117 | /> 118 | 122 |