Skip to content

holly-agyei/Hospital-Authenication-and-Acess-Control-repo

Repository files navigation

Eye Clinic Management System

A web-based management system for eye clinics, featuring role-based access control, patient management, and user administration.

Features

  • Role-based access control (Admin, Doctor, Nurse, Intern, Receptionist, Pharmacist)
  • Patient information management
  • User administration
  • Role-specific dashboards and statistics
  • Secure authentication
  • Responsive design

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)

Installation

  1. Clone the repository:
git clone <repository-url>
cd eye-clinic-management
  1. Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up the environment variables:
cp .env.example .env
# Edit .env with your configuration
  1. Initialize the database:
flask db init
flask db migrate
flask db upgrade

Usage

  1. Start the development server:
flask run
  1. Access the application at http://localhost:5000

  2. Login with one of the default accounts:

Project Structure

.
├── app.py              # Main application file
├── models.py           # Database models
├── requirements.txt    # Python dependencies
├── .env               # Environment configuration
├── templates/         # HTML templates
│   ├── dashboard.html
│   ├── edit_user.html
│   ├── login.html
│   └── manage_users.html
└── instance/          # Instance-specific files
    └── clinic.db      # SQLite database

Security Features

  • Password hashing using Werkzeug
  • Session-based authentication
  • Role-based access control
  • CSRF protection
  • Secure password storage

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Contact Info of Authors

  1. Kelvin Boakye [LinkedIn](https://www.linkedin.com/in/kelvin-boakye-a8b2b6252/
  2. Holy Agyei [LinkedIn](https://www.linkedin.com/in/holy-agyei-247bab313/
  3. Elizabeth Sakyi Mensah [LinkedIn](https://www.linkedin.com/in/elizabeth-sakyi-mensah-/
  4. Afia Pokuaa [LinkedIn](https://www.linkedin.com/in/afiapokuaa/
  5. Kelvin Oppong Acheampong [LinkedIn](https://www.linkedin.com/in/kelvin-oppong-acheampong-936149309/
  6. Micheal Acheapong

License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5