proxyserver2023 / hospital-management-system

Hospital Management System, built with django and mysql
7 stars 12 forks source link

Hospital Management System in Django

Structures

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  1. python3
  2. pip3
  3. virtualenvwrapper
  4. mysql

Install python3

sudo apt-get install -y python3 

Install pip3

sudo apt-get install -y python3-pip

Install virtualenvwrapper

sudo pip3 install vitualenvwrapper

On your .zshrc or .bashrc

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/projects
source /usr/local/bin/virtualenvwrapper.sh
source ~/.bashrc
#or
source ~/.zshrc

Installing

Create a virtualenv

export PROJECT_NAME='hospital_management_system'
mkvirtualenv $PROJECT_NAME
workon $PROJECT_NAME

Clone the Repo

git clone https://github.com/AlaminMahamud/hospital-management-system.git $PROJECT_NAME
cd $PROJECT_NAME

Install the requirements

pip install -r requirements.txt

Install mysql

sudo apt-get install python3-dev libmysqlclient-dev

Change DB Config in settings.py

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': '<database-name>',
        'USER': '<database-user>',
        'PASSWORD': '<database-password>',
        'HOST': 'localhost',
        'PORT': '3306',
    }
}

Running the tests

python -m unittest discover -v

Running the Application

python manage.py collectstatic --noinput
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 0.0.0.0:8080

Deployment

Add additional notes about how to deploy this on a live system

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments