Setup - nicetea02/Dashboard GitHub Wiki
1. Database setup
Enter the MySQL database credentials from your own database.(user, password, host).
! Make sure that the database_NIPT.sql file is present in the current working directory !
Run the script
2. Import of data
Adjust the nipt_input or nipt_ouput variable to the correct directory: the nipt_output or nipt_input directory.
Next, update all the MySQL credentials to the credentials of step 1.
Run the scripts in the following order:
- Quant_report_automated_insert.py
- Reagent_report_automated_insert.py
- Run_parameters_automated_insert.py
- Sequencing_report_automated_insert.py
3. Setting up the web application
When running the application locally, a server hosting is required. During the development, XAMPP was used.
Following file structure needs to be used: The folder ://C/program files/XAMPP/htdocs needs to contain:
- All PHP and CSS files in the folder site2
- All PHP files in the folder graphs
- All PHP files in folder db_connects (copy whole folder to /htdocs)
- Whole folder ContactForm_v5
4. Starting the web application
To be able to run all of the PHP scripts, a apache server needs to be started. This can be done by opening the XAMPP program and start the apache server.
In a webbrowser, navigate to ://localhost/homepage.php to enter the web application's homepage