Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/undercode99/doctor-app-flask
https://github.com/undercode99/doctor-app-flask
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/undercode99/doctor-app-flask
- Owner: undercode99
- Created: 2021-10-01T15:10:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-01T18:06:34.000Z (over 3 years ago)
- Last Synced: 2023-07-28T02:05:57.314Z (over 1 year ago)
- Language: Python
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Restful API Doctor app with Flask
Simple restfull api app doctor appointments, build with python flask this app already scabelable with the versioning api, and separate layers.
Features:
- Docker environment with compose integrate gunicorn, postgres
- Auth with JWT
- Flask scheduler for update data google big query
- Unit Testing with pytest
- ORM with sqlalchemy
- Migration with alembics
- Validator api http with cerberus## Information API
- **Documentation API Postman** :
https://documenter.getpostman.com/view/17611308/UUy38m3U# Getting start
1. Clone this repository```$ git clone https://github.com/undercode99/doctor-app-flask.git ```
Enter directory
```$ cd doctor-app-flask ```
3. Create file .env and add config database and sekeret key
Example:
```env
FLASK_ENV=prod
FLASK_APP=serve:app
DEBUG=False
SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://user_pg:password_pg123@pg:5432/db_pg
SECRET_KEY=da8dhajs7dhqe23r3i18rh32nmr2yr23mhmr2o3r9o23hjrfwefjnsmf8wefksdf
GOOGLE_CLOUD_CREDENTIAL=google-cloud-credentials.jsonPOSTGRES_USER=user_pg
POSTGRES_PASSWORD=password_pg123
POSTGRES_DB=db_pg
```4. Build & Deploy
- Build```$ docker-compose build ```
- Deploy and Running In Background
```$ docker-compose up -d```
5. Running already running with port 80
http://localhost/api/v1/login
Auth login employee default:username : **employee**
password : **employee123**