{"id":35155313,"url":"https://github.com/rd003/fastapi_postgres_crud","last_synced_at":"2026-05-07T02:39:31.773Z","repository":{"id":319488134,"uuid":"1078789181","full_name":"rd003/fastapi_postgres_crud","owner":"rd003","description":"REST APIs with FastApi, SQLAlchemy, alembic and postgres","archived":false,"fork":false,"pushed_at":"2025-10-18T16:46:44.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T08:44:54.895Z","etag":null,"topics":["alembic","fastapi","postgresql","python3","sqlalchemy"],"latest_commit_sha":null,"homepage":"https://ravindradevrani.com/posts/fastapi-crud-with-postgres/","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/rd003.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-18T12:30:59.000Z","updated_at":"2025-10-18T16:46:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"7dca1bde-6200-463f-885f-cf3e90a8c2c9","html_url":"https://github.com/rd003/fastapi_postgres_crud","commit_stats":null,"previous_names":["rd003/fastapi_postgres_crud"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rd003/fastapi_postgres_crud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2Ffastapi_postgres_crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2Ffastapi_postgres_crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2Ffastapi_postgres_crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2Ffastapi_postgres_crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rd003","download_url":"https://codeload.github.com/rd003/fastapi_postgres_crud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2Ffastapi_postgres_crud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32720771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["alembic","fastapi","postgresql","python3","sqlalchemy"],"created_at":"2025-12-28T16:57:05.971Z","updated_at":"2026-05-07T02:39:31.768Z","avatar_url":"https://github.com/rd003.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST API CRUD with fastapi and postgres\r\n\r\nIt is a source code of my [blog post](https://ravindradevrani.com/posts/fastapi-crud-with-postgres/).\r\n\r\n## Pre-requisite\r\n\r\n- Must have install `python 3.10+`\r\n- Install `uv` from [here](https://docs.astral.sh/uv/getting-started/installation/) ,if it is not installed in your machine.\r\n- Either use Postgress in docker or install it \r\n\r\n## Tech used\r\n\r\n- Uv for creating the project and managing dependencies\r\n- Python 3.12\r\n- FastApi\r\n- SqlAlchemy\r\n- Alembic\r\n- PostgreSQL\r\n\r\n# How to run a project\r\n\r\n- Create a database with name `book_db`\r\n- Clone the repository `git clone https://github.com/rd003/fastapi_postgres_crud.git`\r\n- Open it in terminal `cd fastapi_postgres_crud`\r\n\r\nFire these commands (they may vary to windows): \r\n\r\n- `touch .env` (create a file, this command won't work in windows powershell/command prompt)\r\n-  Open the `.env` file (in linux/mac you may use `vim .env` or nano .env) and paste the content below\r\n\r\n```env\r\nDEBUG=True\r\nDATABASE_URL=postgresql://postgres:p%4055w0rd@localhost:5432/book_db\r\n```\r\nReplace DATABASE_URL with yours.\r\n\r\n- uv venv` (will create a virtual environment)\r\n- `source .venv/bin/activate` (will activate venv)\r\n- `uv sync`  (to install the dependencies)\r\n- `alembic upgrade head` (will create tables in the database)\r\n- Run project with `uvicorn src.main:app --reload`. Bydefault, the app will be listening at `http://127.0.0.1:8000`\r\n- In the web browser, open this url `http://127.0.0.1:8000/docs`. It will open the `swagger ui`\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frd003%2Ffastapi_postgres_crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frd003%2Ffastapi_postgres_crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frd003%2Ffastapi_postgres_crud/lists"}