https://github.com/kkanho/medtest_group22
A LAMP stack for medical laboratory
https://github.com/kkanho/medtest_group22
apache docker docker-compose javascript lamp-stack php
Last synced: 15 days ago
JSON representation
A LAMP stack for medical laboratory
- Host: GitHub
- URL: https://github.com/kkanho/medtest_group22
- Owner: kkanho
- Created: 2023-11-06T16:23:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T10:41:47.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T23:45:28.522Z (over 1 year ago)
- Topics: apache, docker, docker-compose, javascript, lamp-stack, php
- Language: PHP
- Homepage:
- Size: 1000 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MedTest     
### MedTest - Group_22
A docker-compose stack to set up a LAMP stack
# Demonstration videos:
[](https://www.youtube.com/watch?v=n8LlYjFBt0w)
## Available Scripts
```sh
#Clone this repository or unzip the repository(MedTest_Group22)
git clone https://github.com/kkanho/MedTest_Group22
#change to the correct directory
cd MedTest_Group22
#Build the server through docker
docker-compose up --build
```
Open [http://localhost](http://localhost) to view it in the browser.
#if any errors, try to restart multiple times with the following command
```sh
docker-compose down
docker-compose up --build
```
## Query Log
We view query log using phpMyAdmin using the following 2 accounts
| Username | Password |
| ---- | ---- |
| root | |
| admin | 123123 |
In order to view query log using account admin,
type the following command in the docker
```sh
#locate the image(mysql:latest), get the container id(8815b887d4d7)
docker ps
#run commands inside an existing container, with the id(8815b887d4d7) just get
docker exec -it 8815b887d4d7 bash
#execute the following command inside the container
mysql -h localhost -P 3306 -u root
GRANT ALL PRIVILEGES ON mysql.general_log TO 'admin';
FLUSH PRIVILEGES;
exit;
#exit the container
exit
```
To view log, simple run the following query
```sql
SELECT * FROM mysql.general_log
```
## Features
- [x] Ability to sign up, login and logout
- [x] Ability to access table with different privileges(front end)
- [x] Form query log