{"id":24829484,"url":"https://github.com/anmamebo/fastapi-authentication","last_synced_at":"2026-04-09T21:58:19.248Z","repository":{"id":275009354,"uuid":"924768662","full_name":"anmamebo/fastapi-authentication","owner":"anmamebo","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-30T20:08:12.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T00:24:51.841Z","etag":null,"topics":["api","api-rest","authentication","fastapi","jwt","python","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anmamebo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-30T16:11:34.000Z","updated_at":"2025-02-14T14:17:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"09dd85f9-3052-421e-b868-6cbaf3b8982d","html_url":"https://github.com/anmamebo/fastapi-authentication","commit_stats":null,"previous_names":["anmamebo/fastapi-authentication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anmamebo/fastapi-authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmamebo%2Ffastapi-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmamebo%2Ffastapi-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmamebo%2Ffastapi-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmamebo%2Ffastapi-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anmamebo","download_url":"https://codeload.github.com/anmamebo/fastapi-authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmamebo%2Ffastapi-authentication/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270149345,"owners_count":24535728,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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":["api","api-rest","authentication","fastapi","jwt","python","sqlite"],"created_at":"2025-01-30T23:26:01.186Z","updated_at":"2026-04-09T21:58:14.213Z","avatar_url":"https://github.com/anmamebo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 FastAPI Authentication\n\nA robust and scalable authentication system built with FastAPI, including user registration, login, JWT-based authentication, and password management.\n\n## ✨ Features\n\n- 🔐 User Authentication (JWT tokens)\n- 📝 User Registration with validation\n- 🔄 Password Hashing \u0026 Verification\n- 🔑 OAuth2 Password Flow\n- 📅 User Last Login Traking\n- 📧 Email-Based Password Reset\n\n## 🛠️ Technologies Used\n\n- **FastAPI**: Framework for building fast and efficient APIs.\n- **SQLModel**: Library for managing the database with SQLAlchemy and Pydantic.\n- **SQLite**: Lightweight database for local development.\n- **JWT**: Token-based authentication.\n- **FastAPI Mail**: Sending emails for password reset.\n\n## ✅ Prerequisites\n\nBefore getting started, make sure you have the following installed:\n- **Python 3.9 or higher**\n- **Pip** (Python package manager)\n- **Git** (optional, for cloning the repository)\n\n## 🖥️ Project Setup\n\n### 1. Clone the Repository\nf you have Git installed, you can clone the repository by running:\n```bash\ngit clone https://github.com/anmamebo/fastapi-authentication.git\n```\n```bash\ncd fastapi-authentication\n```\n\n### 2. Create a Virtual Environment\nIt is recommended to create a virtual environment to isolate the project dependencies:\n```bash\npython -m venv venv\n```\n**Activate the Virtual Environment**\n- Windows:\n```bash\nvenv\\Scripts\\activate\n```\n- Linux/MacOS:\n ```bash\nsource venv/bin/activate\n```\n\n### 3. Install Dependencies\nInstall the project dependencies using `pip`:\n ```bash\npip install -r requirements.txt\n```\n\n### 4. Configure Environment Variables\nCopy the `.env.example`, rename it to `.env` and complete the following variables:\n ```bash\n# Password Secret Key\nSECRET_KEY=your_secret_key_here\n\n# Reset Password Secret Key\nRESET_PASSWORD_SECRET_KEY=your_reset_password_secret_key_here\n\n# Database sqlite\nDB_DATABASE=your_database_name_here\n\n# Email Configuration\nEMAIL_USERNAME=your_email_username_here\nEMAIL_PASSWORD=your_email_password_here\nEMAIL_FROM=your_email_here@example.com\nEMAIL_PORT=your_email_port_here\nEMAIL_SERVER=your_email_server_here\n```\n\n## ▶️ Running the Project\nTo start the development server, run:\n ```bash\nfastapi dev app/main.py\n```\nThe server will be available at `http://127.0.0.1:8000`.\n\n### API Documentation\nOnce the server is running, you can access the interactive API documentation:\n- **Swagger UI**: `http://127.0.0.1:8000/docs`\n- **ReDoc**: `http://127.0.0.1:8000/redoc`\n\n## 📂 Project Structure\n\n ```bash\nfastapi-authentication/\n├── app/\n│   ├── crud/              # CRUD operations for the database\n│   ├── database/          # Database configuration\n│   ├── models/            # SQLModel models\n│   ├── routes/            # API routes\n│   ├── schemas/           # Pydantic schemas\n│   ├── utils/             # Utilities (security, email, etc.)\n│   └── main.py            # Application entry point\n├── requirements.txt       # Project dependencies\n├── .env                   # Environment variables\n└── README.md              # This file\n```\n\n## 🤝 Contributing\n\nIf you would like to contribute to this project, follow these steps:\n1. **Fork** the repository.\n2. Create a new branch (`git checkout -b feature/new-feature`).\n3. Make your changes and commit them (`git commit -m 'Add new feature'`).\n4. Push to the branch (`git push origin feature/new-feature`).\n5. Open a **Pull Request** on GitHub.\n\n## 📜 Licence\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n\n## 📬 Contact\n\n* Developer: Antonio Manuel\n* GitHub: @anmamebo\n* Email: anmamebo2001@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmamebo%2Ffastapi-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmamebo%2Ffastapi-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmamebo%2Ffastapi-authentication/lists"}