{"id":22272873,"url":"https://github.com/yaserdemet/movieapp-react","last_synced_at":"2025-03-25T16:26:24.874Z","repository":{"id":46880036,"uuid":"514681833","full_name":"yaserdemet/movieApp-react","owner":"yaserdemet","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-24T12:22:21.000Z","size":609,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T14:40:26.415Z","etag":null,"topics":["context-api","firebase-auth","helmet","router","tostify"],"latest_commit_sha":null,"homepage":"movie-app-react-sigma.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaserdemet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-16T20:48:20.000Z","updated_at":"2022-08-24T12:19:25.000Z","dependencies_parsed_at":"2022-07-26T16:15:10.750Z","dependency_job_id":null,"html_url":"https://github.com/yaserdemet/movieApp-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaserdemet%2FmovieApp-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaserdemet%2FmovieApp-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaserdemet%2FmovieApp-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaserdemet%2FmovieApp-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaserdemet","download_url":"https://codeload.github.com/yaserdemet/movieApp-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245498709,"owners_count":20625225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["context-api","firebase-auth","helmet","router","tostify"],"created_at":"2024-12-03T13:08:34.766Z","updated_at":"2025-03-25T16:26:24.850Z","avatar_url":"https://github.com/yaserdemet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\n![Animation](https://user-images.githubusercontent.com/99739515/180889461-0cde55b2-d465-47e8-af8a-21ac3291c0be.gif)\n\n[📍click here to see page](https://movie-app-react-68y1ey1wk-yaserdemet.vercel.app\n)\n\nProject aims to create a Movie App.\n\n## Problem Statement\n\n- Have multiple pages, and visiter should not visit all page without registeration. After registeration redirect them to relevant pages.\n\n## Project Skeleton\n\n```\n005 - Movie App (folder)\n|\n|----readme.md         # Given to the students (Definition of the project)\nSOLUTION\n├── public\n│     └── index.html\n├── src\n│    ├── auth\n│    │     └── firebase.js\n│    ├── components\n│    │     ├── MovieCard.js\n│    │     └── Navbar.js\n│    ├── context\n│    │     └── AuthContext.js\n│    ├── pages\n│    │     ├── Login.js\n│    │     ├── Register.js\n│    │     ├── Main.js\n│    │     └── MovieDetail.js\n│    ├── router\n│    │     └── Router.js\n│    ├── App.js\n│    ├── App.css\n│    ├── index.js\n│    └── index.css\n├── package.json\n├── .env\n└── yarn.lock\n```\n\n\n\n### At the end of the project, following topics are to be covered;\n\n📌 Props and State Logic\n\n📌 Global State Management ( Context Api )\n\n📌 Conditional Rendering\n\n📌 Firebase Authentication\n\n📌 React Router Pages\n\n📌 3rd Part Libraries ( Toastify, Axios )\n\n📌 Helmet for SEO optimization \n\n📌 Crypto apiKeys in .env files\n\n📌 Deployment with Vercel and Netlify\n\n\n### At the end of the project, i will be able to;\n\n- improve coding skills within HTML \u0026 CSS \u0026 JS \u0026 ReactJS.\n\n- use git commands (push, pull, commit, add etc.) and Github as Version Control System.\n\n## Steps to Solution\n\n- Step 1 : Create React App using `npx create-react-app movie-app`\n\n- Step 2 : Signup `https://firebase.google.com/` and create new app in firebase.\n\n![Project 005 Snapshot](firebase-create-app.gif)\n\n- Step 3 : Use `https://firebase.google.com/docs/auth/web/start` and create `Authentication` operations.\n  - Add the Firebase Authentication JS codes in your `firebase.js` file and initialize Firebase Authentication:\n  \n- For SEO optimization i have add Helmet, to use helmet\n\n```\nyarn add helmet-react \n\nthen in your component add title and meta tag\n\n      \u003cHelmet\u003e\n        \u003ctitle\u003eLogin Page\u003c/title\u003e\n        \u003cmeta name=\"description\" content=\"login page\" /\u003e\n      \u003c/Helmet\u003e\n      \n ```\n\n```jsx\nimport { initializeApp } from 'firebase/app';\nimport { getAuth } from 'firebase/auth';\n\n// TODO: Replace the following with your app's Firebase project configuration at project settings part\n// See: https://firebase.google.com/docs/web/learn-more#config-object\nconst firebaseConfig = {\n  // ...\n};\n\n// Initialize Firebase\nconst app = initializeApp(firebaseConfig);\n\n// Initialize Firebase Authentication and get a reference to the service\nconst auth = getAuth(app);\n```\n\n- Use this method to `Sign up new users` :\n\n```jsx\nimport { getAuth, createUserWithEmailAndPassword } from 'firebase/auth';\n\ncreateUserWithEmailAndPassword(auth, email, password)\n  .then((userCredential) =\u003e {\n    // Signed in\n    const user = userCredential.user;\n  })\n  .catch((error) =\u003e {\n    console.log(error);\n  });\n```\n\n- Use this method to `Sign in existing users` :\n\n```jsx\nimport { getAuth, signInWithEmailAndPassword } from 'firebase/auth';\n\nsignInWithEmailAndPassword(auth, email, password)\n  .then((userCredential) =\u003e {\n    // Signed in\n    const user = userCredential.user;\n  })\n  .catch((error) =\u003e {\n    console.log(error);\n  });\n```\n\n- Use this method to `Set an authentication state observer and get user data` :\n\n```jsx\nimport { getAuth, onAuthStateChanged } from 'firebase/auth';\n\nonAuthStateChanged(auth, (user) =\u003e {\n  if (user) {\n    // User is signed in, see docs for a list of available properties\n    // https://firebase.google.com/docs/reference/js/firebase.User\n  } else {\n    // User is signed out\n  }\n});\n```\n\n- Use this method to `Authenticate Using Google with Popup` :\n\n```jsx\nimport { GoogleAuthProvider } from 'firebase/auth';\n\nconst provider = new GoogleAuthProvider();\n\nsignInWithPopup(auth, provider)\n  .then((result) =\u003e {\n    // The signed-in user info.\n    const user = result.user;\n  })\n  .catch((error) =\u003e {\n    // Handle Errors here.\n    console.log(error);\n  });\n```\n\n- Use this method to `Sign Out` :\n\n```jsx\nimport { getAuth, signOut } from 'firebase/auth';\n\nsignOut(auth)\n  .then(() =\u003e {\n    // Sign-out successful.\n  })\n  .catch((error) =\u003e {\n    // An error happened.\n  });\n```\n\n- Step 4 : Signup `https://www.themoviedb.org/documentation/api` and get API key for getting data from `https://api.themoviedb.org/3/discover/movie?api_key=${API_KEY}`, for searching movies `https://api.themoviedb.org/3/search/movie?api_key=${API_KEY}\u0026query=` and for movie details `https://api.themoviedb.org/3/movie/${id}?api_key=${API_KEY}`.\n\n- Step 5: You can use css frameworks like Bootstrap, Semantic UI, Material UI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaserdemet%2Fmovieapp-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaserdemet%2Fmovieapp-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaserdemet%2Fmovieapp-react/lists"}