{"id":18153997,"url":"https://github.com/rishika105/react-router-project","last_synced_at":"2026-04-17T01:32:02.630Z","repository":{"id":239439288,"uuid":"799538962","full_name":"rishika105/react-router-project","owner":"rishika105","description":"A webpage that contains login, signup, home pages for the clear depiction of how router works in reactjs. Also used tailwind configuration for styling purposes.","archived":false,"fork":false,"pushed_at":"2024-09-01T05:33:40.000Z","size":1242,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T01:14:52.806Z","etag":null,"topics":["react-router","reactjs","tailwind"],"latest_commit_sha":null,"homepage":"https://react-webpage-router-depiction.netlify.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/rishika105.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-05-12T12:56:24.000Z","updated_at":"2024-09-01T05:33:43.000Z","dependencies_parsed_at":"2024-11-02T23:31:07.433Z","dependency_job_id":null,"html_url":"https://github.com/rishika105/react-router-project","commit_stats":null,"previous_names":["rishika105/react-router-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishika105/react-router-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishika105%2Freact-router-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishika105%2Freact-router-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishika105%2Freact-router-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishika105%2Freact-router-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishika105","download_url":"https://codeload.github.com/rishika105/react-router-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishika105%2Freact-router-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31911459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["react-router","reactjs","tailwind"],"created_at":"2024-11-02T03:22:15.633Z","updated_at":"2026-04-17T01:32:02.612Z","avatar_url":"https://github.com/rishika105.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# React Router Project\n\nThis project is a demonstration of routing between different components and pages using React Router. It includes components for forms, navigation, and route protection, along with several pages like `Home`, `Dashboard`, `Login`, and `Signup`.\n\n## Project Structure\n\n### Components\n\n- **LoginForm.js**: Handles the login form.\n- **SignupForm.js**: Manages the signup form.\n- **Navbar.js**: Contains the navigation bar for navigating between different routes.\n- **PrivateRoute.js**: A higher-order component that guards private routes, ensuring that only authenticated users can access them.\n- **Template.js**: Acts as a layout component for wrapping other components or pages.\n\n### Pages\n\n- **Dashboard.js**: The dashboard page, accessible only after logging in.\n- **Home.js**: The homepage of the application.\n- **Login.js**: The page that contains the `LoginForm` component for user authentication.\n- **Signup.js**: The page that contains the `SignupForm` component for new user registration.\n\n## Installation\n\n### Prerequisites\n\n- **Node.js**: Ensure you have Node.js installed. You can download it from [here](https://nodejs.org/).\n\n### Steps\n\n1. **Clone the repository**:\n   ```bash\n   git clone \u003crepository-url\u003e\n   ```\n   \n2. **Navigate to the project directory**:\n   ```bash\n   cd react-router-project\n   ```\n   \n3. **Install dependencies**:\n   ```bash\n   npm install\n   ```\n\n## Running the Project\n\n1. **Start the development server**:\n   ```bash\n   npm start\n   ```\n\n2. **Open your browser and navigate to**:\n   ```\n   http://localhost:3000\n   ```\n\n## Routing Setup\n\nThe project uses `react-router-dom` to manage the routing between different pages. Here's how the routing is configured:\n\n- **Home Route (`/`)**: Renders the `Home` component.\n- **Login Route (`/login`)**: Renders the `Login` component.\n- **Signup Route (`/signup`)**: Renders the `Signup` component.\n- **Dashboard Route (`/dashboard`)**: Renders the `Dashboard` component and is protected by `PrivateRoute`.\n\n## Screenshots\n![image](https://github.com/user-attachments/assets/ccf267a6-5e2a-4a71-b23c-180dce09ba11)\n\n![image](https://github.com/user-attachments/assets/5ef3dda7-56e0-4fd4-ac69-c136b08619fd)\n\n![image](https://github.com/user-attachments/assets/bc8061e8-35ea-4291-8cfd-62bc00239597)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishika105%2Freact-router-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishika105%2Freact-router-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishika105%2Freact-router-project/lists"}