Coder Social home page Coder Social logo

architjain11 / hospital-management-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17.41 MB

A system written in Python which connects to MySQL and can be used to manage the hospital's work system. Docker environments are used to do the same

Python 100.00%
python docker mysql mysqlconnector

hospital-management-system's Introduction

Hospital Management System

A system written in Python which connects to MySQL and can be used to manage hospital work.

Installation

Install Docker and start docker engine. The 'docker-compose.yml' when run as shown below will get two docker containers up and running, one with MySQL and one with Python.

docker-compose up -d

The docker containers and their IDs can be viewed by using below cmd.

docker ps

We can access the command prompt of the container using container ID.

docker exec -it <containerID> bash

The two containers communicate between one another using MySQL Connector and the password is entered wherever required using stdiomask library which displays asterisks '*' as password is entered unlike python's built-in getpass library which hides what is entered. Both can be installed in the Python container where we run our script.

pip install mysql-connector-python
pip install stdiomask

In the MySQL container, we can start MySQL using the below cmd.

mysql -u <user> -p <password>

Usage

The 'Code' folder contains the file "system.py" which has our main code and can be executed using below command in the Python container.

python system.py

hospital-management-system's People

Contributors

architjain11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.