This project is a recreation of a website called Exercise Looper. Its main functions include creating new exercises, allowing users to answer existing exercises, and displaying the answers to those exercises.
- PHP Version: 8.3.11
- Xdebug Version: 3.3.2
- IDE: Visual Studio Code
- Package Manager: Composer
-
Database Setup: The project uses a
.env
file to store database credentials. It is up to the developer to choose the database engine and set the corresponding credentials in the.env
file.Example
.env
configuration:DATABASE_HOST=127.0.0.1 DATABASE_PORT=3306 DATABASE_NAME=your_database_name DATABASE_USERNAME=your_username DATABASE_PASSWORD=your_password
- Clone the repository.
git clone https://github.com/CPNV-ES/MAW11-ABE
cd MAW11-ABE
- Use the Composer command to install the dependencies:
composer install
- Rename the .env.example file to .env.
cp .env.example .env
-
Run the
/db/initDatabase.sql
file in your database server -
Run the web project locally using:
php -S localhost:8888 -t public
To ensure the quality and functionality of the application, we use PHPUnit for testing. The tests are located in the tests
directory.
- Create a .env_test file
cp .env.example .env_test
- Run the test using the following command
.\vendor\bin\phpunit .\tests\
The project follows the MVC (Model-View-Controller) structure:
├───db
├───public
│ ├───css
│ ├───img
│ └───index.php
└───src
├───Controllers
├───Core
├───Models
└───Views
└───Errors
└───Pages
└───tests
- If you found an issue, want to request different functionality or other, please create a GitHub issue.
- If you want to add new features yourself, please create a pull request.
- There are no specific guidelines for contributing to this project.
If you need to contact me, send me an email at: