{"id":29354221,"url":"https://github.com/thedmathz/simple-fastapi-app","last_synced_at":"2026-04-13T08:31:19.305Z","repository":{"id":303679966,"uuid":"1016282029","full_name":"thedmathz/simple-fastapi-app","owner":"thedmathz","description":"Basic FastAPI + PostgreSQL","archived":false,"fork":false,"pushed_at":"2025-07-09T20:08:28.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-26T11:38:28.796Z","etag":null,"topics":["fastapi-sqlalchemy","postgresql","uvicorn"],"latest_commit_sha":null,"homepage":"","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/thedmathz.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-07-08T19:07:34.000Z","updated_at":"2025-07-09T20:08:31.000Z","dependencies_parsed_at":"2025-07-08T21:39:31.317Z","dependency_job_id":"86ff0e11-222e-4d35-be01-a21279265f15","html_url":"https://github.com/thedmathz/simple-fastapi-app","commit_stats":null,"previous_names":["thedmathz/fastapi-pg-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thedmathz/simple-fastapi-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmathz%2Fsimple-fastapi-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmathz%2Fsimple-fastapi-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmathz%2Fsimple-fastapi-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmathz%2Fsimple-fastapi-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedmathz","download_url":"https://codeload.github.com/thedmathz/simple-fastapi-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmathz%2Fsimple-fastapi-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"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":["fastapi-sqlalchemy","postgresql","uvicorn"],"created_at":"2025-07-09T03:11:46.210Z","updated_at":"2026-04-13T08:31:19.281Z","avatar_url":"https://github.com/thedmathz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI-PostgreSQL Basic API\n\n### Modules:\n- Authentication\n- Users\n- Configurations \n\n## File Structure\n```\nproject/\n├── app/\n│   ├── __init__.py\n│   ├── main.py\n│   ├── core/\n│   │   ├── __init__.py\n│   │   ├── config.py\n│   ├── db/\n│   │   ├── __init__.py\n│   │   ├── base.py\n│   │   ├── session.py\n│   │   └── init_db.py\n│   ├── models/\n│   │   ├── __init__.py\n│   │   └── user.py\n│   ├── schemas/\n│   │   ├── __init__.py\n│   │   └── user.py\n│   ├── services/\n│   │   ├── __init__.py\n│   │   └── user.py\n│   ├── utils/\n│   │   ├── __init__.py\n│   │   ├── misc.py\n│   │   ├── sms.py\n│   │   ├── email.py\n│   │   └── security.py\n│   └── api/\n│       ├── __init__.py\n│       └── routes_user.py\n├── .env\n├── requirements.txt\n└── README.md\n```\n\n## Run on Windows\n\n### Prerequisite\n- Pip 3\n- Python 3\n- PgAdmin 4\n\n### Setup Database\n- Open pgAdmin4, login, then create database\n- Open the project in your IDE, then change the **.env.example** to **.env**\n- Open the **.env** file and update database credentials\n    ```bash\n    DATABASE_URL=postgresql+asyncpg://db_username:db_password@localhost:5432/db_name\n    SECRET_KEY=mysecretkey \n    ```\n    - change **localhost** to your posgresql server ip address, (dont change it if its on your computer)\n    - change **5432** to your posgresql server port, (dont change it if its on your computer or have no issues)\n    - change **db_username** to your posgresql server username\n    - change **db_username** to your posgresql server password\n    - change **db_name** to your posgresql database name\n    - change **mysecretkey** if you have your own secret key\n\n### Run the App\n- Open terminal, then change directory to project path\n```bash \ncd \u003cproject_path\u003e \n``` \n- Create virtual environment\n```bash\npy -3 -m venv .venv\n```\n- Activate vitrual environment\n```bash\n.venv\\Scripts\\activate\n```\n- Upgrade pip (to lessen package error)\n```bash\npython -m pip install --upgrade pip\n```\n- Install packages from **requirements.txt**\n```bash\npip install -r requirements.txt\n```\n- Auto generate database tables\n```bash\npython -m app.db.init_db\n```\n- Run app using uvicorn\n```bash\nuvicorn app.main:app --reload\n```\n- You can now open the [docs](http://127.0.0.1:8000/docs) to test the APIs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedmathz%2Fsimple-fastapi-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedmathz%2Fsimple-fastapi-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedmathz%2Fsimple-fastapi-app/lists"}