{"id":22850012,"url":"https://github.com/arislooi/login-app","last_synced_at":"2026-04-13T23:32:13.591Z","repository":{"id":266797792,"uuid":"899374378","full_name":"ArisLooi/login-app","owner":"ArisLooi","description":"A React application for user authentication and navigation. Perfect for learning React Router, Bootstrap, and useLocalStorage.","archived":false,"fork":false,"pushed_at":"2024-12-06T07:08:22.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T10:53:17.683Z","etag":null,"topics":["authentication","bootstrap","javascript","react","react-router","uselocalstorage","webdevelopment"],"latest_commit_sha":null,"homepage":"","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/ArisLooi.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-12-06T06:15:39.000Z","updated_at":"2024-12-06T07:08:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1ddd705-18a5-443b-882b-de44bbd56e46","html_url":"https://github.com/ArisLooi/login-app","commit_stats":null,"previous_names":["arislooi/login-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisLooi%2Flogin-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisLooi%2Flogin-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisLooi%2Flogin-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisLooi%2Flogin-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArisLooi","download_url":"https://codeload.github.com/ArisLooi/login-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246426824,"owners_count":20775452,"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":["authentication","bootstrap","javascript","react","react-router","uselocalstorage","webdevelopment"],"created_at":"2024-12-13T05:06:07.167Z","updated_at":"2026-04-13T23:32:13.560Z","avatar_url":"https://github.com/ArisLooi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Login App\n\nWelcome to the Login App project! This is a React application that demonstrates user authentication and navigation using React Router, Bootstrap, and useLocalStorage.\n\n## Features\n\n- User authentication with email and password\n- Protected routes for authenticated users\n- Navigation bar with conditional rendering based on authentication status\n- Persistent login state using useLocalStorage\n\n## Getting Started\n\n### Prerequisites\n\nTo run this project, you need Node.js and npm installed on your machine.\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/ArisLooi/login-app.git\n2. Navigate to the project directory:\n    ```bash\n    cd login-app\n3. Install the dependencies:\n   ```bash\n   npm install\n\n## Usage\n1. Start the development server:\n   ```bash\n   npm start\n2. Open your browser and navigate to http://localhost:3000.\n\n## Project Structure\nlogin-app/\n├── public/\n├── src/\n│   ├── assets/\n│   ├── components/\n│   │   ├── AppNavbar.jsx\n│   │   ├── RequireAuth.jsx\n│   ├── pages/\n│   │   ├── Home.jsx\n│   │   ├── Login.jsx\n│   │   ├── Dashboard.jsx\n│   │   ├── Profile.jsx\n│   ├── App.css\n│   ├── App.jsx\n│   ├── AuthContext.js\n│   ├── index.css\n│   ├── main.jsx\n├── .gitignore\n├── eslint.config.js\n├── index.html\n├── package-lock.json\n├── package.json\n├── README.md\n└── vite.config.js\n\n## Functions\n- login(): Authenticates the user and sets the token in local storage.\n- handleLogout(): Logs out the user by clearing the token from local storage.\n- RequireAuth: A higher-order component that redirects unauthenticated users to the login page.\n\n## Contributing\nContributions are welcome! Please fork the repository and create a pull request with your changes.\n\n## Acknowledgments\nThanks to all the developers who have contributed to open-source projects and made learning to code accessible to everyone.\n\nHappy coding! 😊\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farislooi%2Flogin-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farislooi%2Flogin-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farislooi%2Flogin-app/lists"}