================Question 5==================== a. Logs into a database with respective columns b. Logs the data in a log file while reading c. Checks for duplicates d. Extracts performance metrics e.g TAT e. REST API to access the data
===== HOW TO SETUP ================================
- Make sure you have Xampp server setup.
- Start apache services and mysql in the xampp Control panel.
- Navigate to php myadmin
- create a database and call it cellulant
- Create a table and name it assesment
- add for fields id =>(Primary_Key, int,Not Null, Auto_increment),time_details=>(varchar(120), not null),request_ip=>(varchar(120), not null),TAT=>(varchar(120), not null)
- add the log.txt file on the root folder of the web page
- Open the fileconsumer.php file on the web browser.
- check the table created in step 5 above, it will be filled with the data from log file.
- another file log2.txt will be created on the root folder.
- contains two api files read.php for sending a get request and receiving feedback from server nd post.php for writing data to our db