Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgautam98/fastapi-hpd
https://github.com/mgautam98/fastapi-hpd
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgautam98/fastapi-hpd
- Owner: mgautam98
- Created: 2021-06-24T15:08:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-20T10:25:44.000Z (over 3 years ago)
- Last Synced: 2024-10-09T13:25:11.536Z (about 1 month ago)
- Language: CSS
- Size: 881 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Healthcare Provider Directory APP
Individual parts of projects are on follwing branches
`part_1`
`part_2`
`part_3`## Generate mock data
```
mkdir database
python generate_data.py # generates 300 records in pickle format
```## Structure
```
├── app # fastapi app
│ ├── __init__.py #
│ ├── core #
│ │ ├── config.py # setting and configurations
│ │ ├── dataimp.py # file database implimentation
│ │ ├── exceptions.py # exceptions used
│ │ └── utils.py # utils
│ ├── database.py # database
│ ├── repository #
│ │ └─ provider.py # providers data access
│ ├── routers #
│ │ └── provider.py # providers routes
│ ├── schemas.py # pydantic schemas
│ └── main.py # entry to fastapi app
└── generate_data.py # mock data generator
```## Run Locally
Clone the project
```bash
git clone https://github.com/mgautam98/fastapi-hpd.git
```Go to the project directory
```bash
cd fastapi-hpd
```Install dependencies, requires `poetry`
```bash
poetry install
```Start the server
```bash
uvicorn app.main:app --reload
```## Deployment
To deploy this project run
```bash
docker-compose up
```## Running Tests
To run tests, run the following command
```bash
pytest
```## Environment Variables
To run this project, you will need to add the following environment variables to your .env file
`POSTGRES_URL`
`POSTGRES_USER`
`POSTGRES_PW`## Screenshots