{"id":22302150,"url":"https://github.com/ashokravina/nxt-trendz-authentication","last_synced_at":"2026-04-18T06:07:38.196Z","repository":{"id":254161402,"uuid":"845672837","full_name":"ashokravina/Nxt-Trendz-Authentication","owner":"ashokravina","description":"In this project, let's build Nxt Trendz app with authentication by applying the concepts","archived":false,"fork":false,"pushed_at":"2024-08-21T17:55:23.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T23:48:21.267Z","etag":null,"topics":["authentication","authorization","css3","html5","javascript","react-router","reactcomponents","reactjs","reactrouter-d"],"latest_commit_sha":null,"homepage":"https://nxttrendzauther.ccbp.tech/","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/ashokravina.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-21T17:46:35.000Z","updated_at":"2024-08-21T17:55:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c390cf3-de86-448c-b374-67a47f9a8103","html_url":"https://github.com/ashokravina/Nxt-Trendz-Authentication","commit_stats":null,"previous_names":["ashokravina/nxt-trendz-authentication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashokravina/Nxt-Trendz-Authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokravina%2FNxt-Trendz-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokravina%2FNxt-Trendz-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokravina%2FNxt-Trendz-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokravina%2FNxt-Trendz-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashokravina","download_url":"https://codeload.github.com/ashokravina/Nxt-Trendz-Authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashokravina%2FNxt-Trendz-Authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31958492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["authentication","authorization","css3","html5","javascript","react-router","reactcomponents","reactjs","reactrouter-d"],"created_at":"2024-12-03T18:35:03.329Z","updated_at":"2026-04-18T06:07:38.181Z","avatar_url":"https://github.com/ashokravina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"In this project, let's build **Nxt Trendz** app with authentication by applying the concepts we have learned till now.\n\nLogin Page Link: https://nxttrendzauther.ccbp.tech/login \n\nUserName: \"rahul\"\n\nPassword: \"rahul@2021\"\n\nHome Page Link: https://nxttrendzauther.ccbp.tech\n\n### Refer to the image below:\n\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/nxt-trendz-authentication-output-v2.gif\" alt=\"nxt trendz authentication desktop output\" style=\"max-width:90%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n### Design Files\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- [Extra Small (Size \u003c 576px), Small (Size \u003e= 576px), and Medium (Size \u003e= 768px)](https://assets.ccbp.in/frontend/content/react-js/nxt-trendz-authentication-sm-outputs.png)\n- [Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Login](https://assets.ccbp.in/frontend/content/react-js/nxt-trendz-authentication-lg-login-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Home](https://assets.ccbp.in/frontend/content/react-js/nxt-trendz-authentication-lg-home-output.png)\n\n\u003c/details\u003e\n\n### Set Up Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- Download dependencies by running `npm install`\n- Start up the app using `npm start`\n\u003c/details\u003e\n\n### Completion Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eFunctionality to be added\u003c/summary\u003e\n\u003cbr/\u003e\n\nThe app must have the following functionalities\n\n- When invalid credentials are provided in the login form and **Login** button is clicked, then the respective error message from the response should be displayed\n- When the **username** and **password** are provided correctly and **Login** button is clicked, then the page should navigate to Home Route\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003eAPI Requests \u0026 Responses\u003c/summary\u003e\n\u003cbr/\u003e\n\n**loginApiUrl**\n\n#### API: `https://apis.ccbp.in/login`\n\n#### Method: `POST`\n\n#### Description:\n\nReturns a response based on the credentials provided\n\n#### Sample Success Response\n\n```json\n{\n  \"jwt_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJhaHVsIiwicm9sZSI6IlBSSU1FX1VTRVIiLCJpYXQiOjE2MTk2Mjg2MTN9.nZDlFsnSWArLKKeF0QbmdVfLgzUbx1BGJsqa2kc_21Y\"\n}\n```\n\n#### Sample Failure Response\n\n```json\n{\n  \"status_code\": 404,\n  \"error_msg\": \"Username is not found\"\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eComponents Structure\u003c/summary\u003e\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/nxt-trendz-authentication-login-component-structure-breakdown.png\" alt=\"nxt trendz authentication login component structure breakdown\" style=\"max-width:100%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/nxt-trendz-authentication-home-component-structure-breakdown.png\" alt=\"nxt trendz authentication home component structure breakdown\" style=\"max-width:100%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eImplementation Files\u003c/summary\u003e\n\u003cbr/\u003e\n\nUse these files to complete the implementation:\n\n- `src/App.js`\n- `src/components/LoginForm/index.js`\n- `src/components/LoginForm/index.css`\n- `src/components/Home/index.js`\n- `src/components/Home/index.css`\n- `src/components/Header/index.js`\n- `src/components/Header/index.css`\n\u003c/details\u003e\n\n### Quick Tips\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\u003cbr\u003e\n\n- You can use the `box-shadow` CSS property to apply the box-shadow effect to containers\n\n  ```\n    box-shadow: 0px 4px 16px 0px #bfbfbf;\n  ```\n\n  \u003cbr/\u003e\n   \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/box-shadow-img.png\" alt=\"box shadow\" style=\"width:200px\" /\u003e\n\n- You can use the `cursor` CSS property to specify the mouse cursor to be displayed when pointing over an element\n\n  ```\n    cursor: pointer;\n  ```\n\n  \u003cbr/\u003e\n   \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/cursor-pointer-img.png\" alt=\"cursor pointer\" style=\"width:100px\" /\u003e\n\n- You can use the below `outline` CSS property for buttons and input elements to remove the highlighting when the elements are clicked\n\n  ```\n    outline: none;\n  ```\n\n\u003c/details\u003e\n\n### Important Note\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n**The following instructions are required for the tests to pass**\n\n- `Home` route should consist of `/` in the URL path\n- `Login` route should consist of `/login` in the URL path\n- No need to use the `BrowserRouter` in `App.js` as we have already included in `index.js`\n- User credentials\n\n  ```text\n   username: rahul\n   password: rahul@2021\n  ```\n\n\u003c/details\u003e\n\n### Resources\n\n\u003cdetails\u003e\n\u003csummary\u003eImage URLs\u003c/summary\u003e\n\n- [https://assets.ccbp.in/frontend/react-js/nxt-trendz-logo-img.png](https://assets.ccbp.in/frontend/react-js/nxt-trendz-logo-img.png) alt should be **website logo**\n- [https://assets.ccbp.in/frontend/react-js/nxt-trendz-login-img.png](https://assets.ccbp.in/frontend/react-js/nxt-trendz-login-img.png) alt should be **website login**\n- [https://assets.ccbp.in/frontend/react-js/nxt-trendz-home-img.png](https://assets.ccbp.in/frontend/react-js/nxt-trendz-home-img.png) alt should be **clothes that get you noticed**\n- [https://assets.ccbp.in/frontend/react-js/nxt-trendz-log-out-img.png](https://assets.ccbp.in/frontend/react-js/nxt-trendz-log-out-img.png) alt should be **nav logout**\n- [https://assets.ccbp.in/frontend/react-js/nxt-trendz-home-icon.png](https://assets.ccbp.in/frontend/react-js/nxt-trendz-home-icon.png) alt should be **nav home**\n- [https://assets.ccbp.in/frontend/react-js/nxt-trendz-products-icon.png](https://assets.ccbp.in/frontend/react-js/nxt-trendz-products-icon.png) alt should be **nav products**\n- [https://assets.ccbp.in/frontend/react-js/nxt-trendz-cart-icon.png](https://assets.ccbp.in/frontend/react-js/nxt-trendz-cart-icon.png) alt should be **nav cart**\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eColors\u003c/summary\u003e\n\n\u003cbr/\u003e\n\u003cdiv style=\"background-color: #1e293b; width: 150px; padding: 10px; color: white\"\u003eHex: #1e293b\u003c/div\u003e\n\u003cdiv style=\"background-color: #ffffff; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff\u003c/div\u003e\n\u003cdiv style=\"background-color: #475569; width: 150px; padding: 10px; color: white\"\u003eHex: #475569\u003c/div\u003e\n\u003cdiv style=\"background-color: #e6f6ff; width: 150px; padding: 10px; color: black\"\u003eHex: #e6f6ff\u003c/div\u003e\n\u003cdiv style=\"background-color: #d7dfe9; width: 150px; padding: 10px; color: black\"\u003eHex: #d7dfe9\u003c/div\u003e\n\u003cdiv style=\"background-color: #e2e8f0; width: 150px; padding: 10px; color: black\"\u003eHex: #e2e8f0\u003c/div\u003e\n\u003cdiv style=\"background-color: #64748b; width: 150px; padding: 10px; color: white\"\u003eHex: #64748b\u003c/div\u003e\n\u003cdiv style=\"background-color: #0b69ff; width: 150px; padding: 10px; color: white\"\u003eHex: #0b69ff\u003c/div\u003e\n\u003cdiv style=\"background-color: #ff0b37; width: 150px; padding: 10px; color: white\"\u003eHex: #ff0b37\u003c/div\u003e\n\u003cdiv style=\"background-color: #0967d2; width: 150px; padding: 10px; color: white\"\u003eHex: #0967d2\u003c/div\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFont-families\u003c/summary\u003e\n\n- Roboto\n\n\u003c/details\u003e\n\n\u003e ### _Things to Keep in Mind_\n\u003e\n\u003e - All components you implement should go in the `src/components` directory.\n\u003e - Don't change the component folder names as those are the files being imported into the tests.\n\u003e - **Do not remove the pre-filled code**\n\u003e - Want to quickly review some of the concepts you’ve been learning? Take a look at the Cheat Sheets.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokravina%2Fnxt-trendz-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashokravina%2Fnxt-trendz-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokravina%2Fnxt-trendz-authentication/lists"}