Giter Club home page Giter Club logo

pulse-healthcare's Introduction

Pulse Health care Project

Database Creation and Running Web Project

Ubuntu + intellij IDEA is preferred to run this project.

  1. Install PHP and mysql. Run

    sudo apt-get install php
    sudo apt-get install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php
    
    sudo apt-get install mysql-server
    sudo apt-get install php7.2-mysqli
    sudo mysql
  2. Add root user with root password.

    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
  3. Run mysql_secure_installation. While running mysql_secure_installation, don't give y to validate password plugin.

  4. Run mysql with the root privilege.

    mysql -u root -p
  5. Create the database and user.

     CREATE USER 'pulse_root'@'localhost' IDENTIFIED BY 'password';
     CREATE DATABASE pulse;
     USE pulse;
     GRANT ALL PRIVILEGES ON pulse . * TO 'pulse_root'@'localhost';
  6. Create the tables. Refer to web/dump.sql for database dump.

  7. Install composer and run composer install from web/ folder.

  8. Run web/public/ folder from PHP.

    cd web/public
    php -S localhost:8000
  9. Navigate to http://localhost:8000 to verify that everything is working properly.

For ease of testing we have included all default passwords of users in the table without encrypting. It can be easily removed in production use.

Running Tests ๐Ÿค–

  • Unit tests and integration tests for the web site can be found in web/test folder. You need to have installed the dependencies using composer before testing.
  • Automated selenium tests can be found in test/selenium directory. You have to have installed,
  1. Python 3.7
  2. Selenium library for python (pip install selenium)
  3. Chrome web driver
    1. sudo apt-get install chromium-chromedriver
    2. If you get a SessionNotCreatedException: session not created: Chrome version must be between 70 and 73 or a similar message, go to http://chromedriver.chromium.org/ and download chrome driver matching your chrome browser version.
    3. Replace the chromedriver file in /usr/bin/chromedriver with the downloaded file.
  4. Run python main.py

Running App

To run the app, your web site must be functioning correctly. Run web in https://localhost:8000. Currently app only works in an emulator because web is deployed in localhost and not in a real web server. You need to have flutter 1.5 installed and working correctly in order to run the app. Run flutter run from app/ directory in order to run the debug version.

Screenshots ๐Ÿ–ผ๏ธ

Web

Home Page Login Page
Home Page Login Page
Medical Center Page Doctor Search
Medical Center Registration Page Doctor Search Page
Timeline Doctor Prescription
Time line Page Doctor Prescription Add Page
Admin Verify Admin Chart
Medical Center Verification Page Admin Dashboard Page

App

Timeline Search
Timeline Search Doctors
Search Dark Theme
Search Doctors Dark Mode

User Management

Current user = administrator

Current password = password

Basic TODO

  • Implement user login
  • Implement medical center account creation
  • Implement doctor/patient account creation
  • Implement profile viewing
  • Implement selecting patient account
  • Implement timeline
  • Implement medication adding

Members

K. D. Sunera Avinash Chandrasiri T. Anju Chamantha Lahiru Udayanga

pulse-healthcare's People

Contributors

anjuchamantha avatar kdsuneraavinash avatar nomadxd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pulse-healthcare's Issues

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.