{"id":20788604,"url":"https://github.com/narayan954/user-management","last_synced_at":"2026-01-30T14:16:43.644Z","repository":{"id":208579844,"uuid":"721979259","full_name":"narayan954/user-management","owner":"narayan954","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-22T09:30:23.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T22:40:55.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/narayan954.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,"zenodo":null}},"created_at":"2023-11-22T07:19:20.000Z","updated_at":"2023-11-22T08:24:45.000Z","dependencies_parsed_at":"2025-06-13T22:35:34.429Z","dependency_job_id":"05e89323-a5c7-476b-af14-3bf3afc45b81","html_url":"https://github.com/narayan954/user-management","commit_stats":null,"previous_names":["narayan954/user-management"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/narayan954/user-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2Fuser-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2Fuser-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2Fuser-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2Fuser-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narayan954","download_url":"https://codeload.github.com/narayan954/user-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayan954%2Fuser-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28913961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: 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":[],"created_at":"2024-11-17T15:02:27.359Z","updated_at":"2026-01-30T14:16:43.632Z","avatar_url":"https://github.com/narayan954.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI-MySQL-Authentication\n\nThis is a simple FastAPI project demonstrating user authentication with MySQL database integration.\n\n## Features\n\n- User login with authentication\n- Adding new users to the database\n\n## Prerequisites\n\nBefore running the project, ensure you have the following installed:\n\n- Python 3.x\n- MySQL server\n- Virtual environment (optional but recommended)\n\n## Setup\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/yourusername/fastapi-mysql-authentication.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd {project-directory}\n   ```\n\n3. Create and activate a virtual environment (optional but recommended):\n\n   ```bash\n    python -m venv venv\n    source venv/bin/activate  # On Windows: .\\venv\\Scripts\\activate\n    ```\n\n4. Install dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n5. Configure MySQL:\n   \n   Create a MySQL database and update the connection details in main.py:\n\n   ```python\n    host=\"your_mysql_host\",\n    user=\"your_mysql_user\",\n    password=\"your_mysql_password\",\n    database=\"your_database_name\"\n    ```\n\n6. Run the application to create the 'users' table in the database.\n    \n    ```bash\n    uvicorn main:app --reload\n    ```\n\n7. Stop the application and add a new user to the database by uncommenting the following lines in main.py:\n\n    ```python\n    # from database import create_user\n    # create_user(\"username\", \"password\")\n    ```\n    Run the application again to add the new user to the database.\n\n    ```bash\n    uvicorn main:app --reload\n    ```\n    Stop the application and comment out the lines again.\n\n8. Run the application again and visit  http://127.0.0.1:8000 in your browser to access the login page.\n   Use the provided login credentials or add new users through the application.\n\n9. Test Credential Example:\n\n    ```bash\n    username: testuser\n    password: testpassword\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarayan954%2Fuser-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarayan954%2Fuser-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarayan954%2Fuser-management/lists"}