{"id":27610330,"url":"https://github.com/justinianus2001/fastapi-auth","last_synced_at":"2025-04-22T23:26:22.993Z","repository":{"id":288226823,"uuid":"967257817","full_name":"Justinianus2001/fastapi-auth","owner":"Justinianus2001","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T07:14:10.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T09:29:00.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Justinianus2001.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":"2025-04-16T07:12:11.000Z","updated_at":"2025-04-16T07:14:26.000Z","dependencies_parsed_at":"2025-04-16T09:29:19.866Z","dependency_job_id":"57e342aa-8fc5-44ac-8822-ef8d3a8696d7","html_url":"https://github.com/Justinianus2001/fastapi-auth","commit_stats":null,"previous_names":["justinianus2001/fastapi-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justinianus2001%2Ffastapi-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justinianus2001%2Ffastapi-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justinianus2001%2Ffastapi-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justinianus2001%2Ffastapi-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Justinianus2001","download_url":"https://codeload.github.com/Justinianus2001/fastapi-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250339215,"owners_count":21414322,"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":[],"created_at":"2025-04-22T23:26:22.277Z","updated_at":"2025-04-22T23:26:22.981Z","avatar_url":"https://github.com/Justinianus2001.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Authentication and CRUD Application\n\nA simple web application built with FastAPI that demonstrates user authentication using JWT tokens and basic CRUD operations with PostgreSQL database.\n\n## Features\n\n- User registration and authentication\n- JWT token-based authentication\n- PostgreSQL database integration\n- CRUD operations for items\n- Clean and responsive UI\n- Secure password hashing\n\n## Prerequisites\n\n- Python 3.8+\n- PostgreSQL\n- pip (Python package manager)\n\n## Setup\n\n1. Clone the repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd fastapi-auth-middleware\n```\n\n2. Create a virtual environment and activate it:\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Create a PostgreSQL database named `fastapi_auth_db`\n\n5. Update the `.env` file with your database credentials and secret key:\n```\nDATABASE_URL=postgresql://postgres:postgres@localhost:5432/fastapi_auth_db\nSECRET_KEY=your-secret-key-here\nALGORITHM=HS256\nACCESS_TOKEN_EXPIRE_MINUTES=30\n```\n\n## Running the Application\n\n1. Start the FastAPI server:\n```bash\nuvicorn app.main:app --reload\n```\n\n2. Open your browser and navigate to:\n```\nhttp://localhost:8000\n```\n\n## API Documentation\n\nOnce the application is running, you can access the API documentation at:\n```\nhttp://localhost:8000/docs\n```\n\n## Project Structure\n\n```\nfastapi-auth-middleware/\n├── app/\n│   ├── __init__.py\n│   ├── main.py\n│   ├── auth.py\n│   ├── models.py\n│   └── database.py\n├── static/\n│   ├── styles.css\n│   └── script.js\n├── templates/\n│   ├── login.html\n│   └── items.html\n├── requirements.txt\n├── .env\n└── README.md\n```\n\n## Security Notes\n\n- The secret key in the `.env` file should be kept secure and never committed to version control\n- Passwords are hashed using bcrypt before storing in the database\n- JWT tokens are used for authentication\n- Database credentials should be properly secured ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinianus2001%2Ffastapi-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinianus2001%2Ffastapi-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinianus2001%2Ffastapi-auth/lists"}