Ubuntu
+ intellij IDEA
is preferred to run this project.
-
Install
PHP
andmysql
. Runsudo 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
-
Add
root
user withroot
password.ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
-
Run
mysql_secure_installation
. While runningmysql_secure_installation
, don't givey
tovalidate password plugin
. -
Run
mysql
with theroot
privilege.mysql -u root -p
-
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';
-
Create the tables. Refer to
web/dump.sql
for database dump. -
Install composer and run
composer install
fromweb/
folder. -
Run
web/public/
folder fromPHP
.cd web/public php -S localhost:8000
-
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.
- 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,
- Python 3.7
- Selenium library for python (
pip install selenium
) - Chrome web driver
sudo apt-get install chromium-chromedriver
- 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. - Replace the
chromedriver
file in/usr/bin/chromedriver
with the downloaded file.
- Run
python main.py
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.
Home Page | Login Page |
Medical Center Registration Page | Doctor Search Page |
Time line Page | Doctor Prescription Add Page |
Medical Center Verification Page | Admin Dashboard Page |
Timeline | Search Doctors |
Search Doctors | Dark Mode |
Current user = administrator
Current password = password
- 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
K. D. Sunera Avinash Chandrasiri T. Anju Chamantha Lahiru Udayanga