Tabulation System for Ms. San Ramon and Ms. Barakong Magayon (Iriga City)
Here are the steps to set up the development environment for this project:
-
Download and install XAMPP and NodeJS, if you haven't already.
-
Start Apache and MySQL through XAMPP if not already running.
-
Clone or download this repository to your XAMPP htdocs folder. The final path should be
path_to/xampp/htdocs/msr-mbm
. -
Copy
app/config/database.example.php
toapp/config/database.php
, then modify the database connection settings in the new file. -
Inside phpMyAdmin, create a MySQL database named
msr-mbm
and import msr-mbm.sql into it. -
Open the terminal and navigate to the project directory msr-mbm.
-
Execute the following commands to install the required dependencies:
npm install
-
Compile and run the development server with hot reloading:
npm run dev
-
Open your web browser and access https://localhost:5188/msr-mbm/ to view the application.
This guide will walk you through the process of testing the backend models.
Before getting started, ensure that you have Composer installed.
-
Copy
tests/backend/config/test-database.example.php
totests/backend/config/test-database.php
, then modify the database connection settings in the new file. -
Inside phpMyAdmin, create a MySQL database named
test-msr-mbm
and import msr-mbm.sql into it. -
Run the following command to install the required dependencies.
composer install
If this command does not work, try running
composer update
instead.
To write your tests, simply add your Unit Tests to the tests/backend/unit directory and your Feature Tests to the tests/backend/feature directory.
-
Open a terminal window and navigate to the root directory of the project.
-
Run the following command to execute your tests:
- all tests
phpunit
- unit tests only
phpunit --testsuite unit
- feature tests only
phpunit --testsuite feature
If
phpunit
command does not work, try runningvendor\bin\phpunit
instead.
Here's how to compile the project for production deployment:
-
Generate the public folder by running the following command:
npm run build
-
Access the application by visiting
https://[host_name]/msr-mbm
, wherehost_name
is the IP address or host name of the server in the network. For example:
Access the admin dashboard at https://localhost/msr-mbm/app.
The default username and password is admin
.
For printing results, click the print button in your browser or press CTRL + P
,
then properly set up the page for printing.