Django Clinic is the final project in Python and Django to accomplish Python from Scratch course in Software Development Academy.
- Python=3.8
- Django=3.0.8
- Dashboard for patients and employees to manage their accounts(CRUD).
- Calendar for easy appointment booking
- Managing appointments form patient and staff
- System to create new patients and staff
- Easy browsing between patients and doctors
Required:
- Python 3.8
- pip
- git
# create project folder and cd into it
mkdir -p clinic/clinic/ && cd $_
# create virtual environment
python3 -m venv venv
# activate virtual environment
source venv/bin/activate
# AbstractBaseUser and auth Group are use for this project
# You have to first create django project and auth database
pip install django~=3.0.8
django-admin.py startproject clinic .
# create auth database
python manage.py migrate auth
# change database name and go to previous directory
mv db.sqlite3 clinic_db.sqlite3 && cd ..
# clone clinic repository
git init
git remote add origin https://github.com/Cravtec/clinic.git
git fetch
git switch -tf origin/master
# install requirements and go inside clinic folder
cd clinic && pip install -r requirements.txt
# make database migration
python manage.py migrate
# load dummy data into database for better experience
python manage.py loaddata fixtures.json
# to create your superuser and play with the dashboard run
python manage.py createsuperuser
# and at last start django server
python manage.py runserver
Server is running on localhost and port 8000: http://127.0.0.1:8000
Required:
- docker
- docker-compose
- git
# create project folder and cd into it
mkdir clinic && cd clinic
# clone github repository
git clone https://github.com/Cravtec/clinic.git
# build and run container
docker-compose build
# create your superuser to play with the dashboard
docker-compose run backend python manage.py createsuperuser
# run container
docker-compose up
Server is running on localhost and port 8000: http://127.0.0.1:8000