https://github.com/rdquispe/fastapi-postgres
https://github.com/rdquispe/fastapi-postgres
backend-api fastapi postgresql
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rdquispe/fastapi-postgres
- Owner: rdquispe
- License: mit
- Created: 2022-01-22T19:46:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T21:58:42.000Z (over 3 years ago)
- Last Synced: 2025-11-17T04:13:46.432Z (8 months ago)
- Topics: backend-api, fastapi, postgresql
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Movies
### Features
- Database Connection Using SQLAlchemy
- FastAPI Server
- Unit Testing with PyTest
- Basic CRUD for Movies
### Dependencies
- Python 3.9+
- Pipenv
### Tests
```sh
pytest
```
### Environment
```sh
pipenv shell
```
- Setting up environment variables
| Key | Value |
|--------------|-----------------------------------------|
| DATABASE_URL | postgresql://user:password@host:port/db |
- To run the project
```sh
uvicorn main:app --reload
```
### Docker
```shell
docker-compose -f docker-compose-local.yml up && docker-compose rm -fsv
```
### Docs
```
http://127.0.0.1:8000/docs
```