Follow these steps to set up the project on your local machine:
- Install PHP (version 7.4 or higher).
- Install Composer, the dependency manager for PHP.
- Install MySQL or any compatible database.
-
Clone the repository:
git clone https://github.com/r6mez/Hogwarts-For-Programming.git cd Hogwarts-For-Programming -
Install dependencies using Composer:
composer install
-
Set up the database: run queries in
schema/schema.sqland to populate database runschema/query.sql, and to view database settings head toconfig/config.php. -
Start the development server:
php -S localhost:8000 -t public
-
Open your browser and navigate to
http://localhost:8000.
public/: Contains public-facing files, including the entry pointindex.phpand static assets.src/: Core application logic, including controllers, validators, and utility classes.config/: Configuration files, such as database credentials and route definitions.Schema/: SQL scripts for setting up the database schema.vendor/: Composer dependencies (generated after runningcomposer install)..gitignore: Specifies files and directories to exclude from version control.README.md: Documentation for setting up and understanding the project.