Skip to content

This project runs a WAS for registering information about hospital, doctor, major, school, and returning them corresponding to received HTTP request.

Notifications You must be signed in to change notification settings

jaehyeonpy/hospital_info_system

Repository files navigation

Description

This project runs a WAS for registering information about hospital, doctor, major, school, and returning them corresponding to received HTTP request.


Note that the project does not supoort HTTPS.

Make sure to hide mysql_setting.yaml, secret_key.yaml to a safe place, modify settings.py to load these from the place.

For the fields doctor.major, doctor.school, and hospital.director, it is okay to temporarily set them as null, before assigning values to major, school, and director, respectively.

The fields hospital.phone, hospital.url, hospital.eup_myeon_dong_name, and hospital.established_at can also be set as null, based on the provided fixture data.


The project is based on django rest framework.

The hospital information is from this open api.


Give it a try!

make the proejct containers by:

docker-compose up

wait about 30 seconds for mysql and the WAS to startup, run test or insert fixture to the WAS by:

(for test) cd hospital_info_system && python manage.py test hospital_info_applyer


(for inserting fixture to the WAS) 

cd hospital_info_system 

python manage.py loaddata hospital_info_applyer/fixtures/all_hospital_info.jsonl

nohup python manage.py runserver 0.0.0.0:8000 --insecure &

note that other fixtures are ready in hospital_info_applyer/fixtures, too.


the swagger document is like the below, in the case of inserting fixture to the WAS, you can see it through 127.0.0.1:8001/swagger from your host by default:


License

MIT

About

This project runs a WAS for registering information about hospital, doctor, major, school, and returning them corresponding to received HTTP request.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published