An open API service indexing awesome lists of open source software.

https://github.com/rdquispe/fastapi-postgres


https://github.com/rdquispe/fastapi-postgres

backend-api fastapi postgresql

Last synced: about 2 months ago
JSON representation

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
```