Skip to content

CPNV-ES/MAW11-ABE

 
 

Repository files navigation

MAW11-ABE

Description

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.

Getting Started

Prerequisites

  • PHP Version: 8.3.11
  • Xdebug Version: 3.3.2
  • IDE: Visual Studio Code
  • Package Manager: Composer

Configuration

  • 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

Deployment

On dev environment

  1. Clone the repository.
git clone https://github.com/CPNV-ES/MAW11-ABE
cd MAW11-ABE
  1. Use the Composer command to install the dependencies:
composer install
  1. Rename the .env.example file to .env.
cp .env.example .env
  1. Run the /db/initDatabase.sql file in your database server

  2. Run the web project locally using:

php -S localhost:8888 -t public

Testing

To ensure the quality and functionality of the application, we use PHPUnit for testing. The tests are located in the tests directory.

Running Tests

  1. Create a .env_test file
cp .env.example .env_test
  1. Run the test using the following command
.\vendor\bin\phpunit .\tests\

Directory structure

The project follows the MVC (Model-View-Controller) structure:

├───db
├───public
│   ├───css
│   ├───img
│   └───index.php
└───src
    ├───Controllers
    ├───Core
    ├───Models
    └───Views
        └───Errors
        └───Pages
└───tests

Collaborate

  • 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.

Contact

If you need to contact me, send me an email at:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 86.4%
  • CSS 13.6%