Hogwarts for Programming is a PHP-based application designed to help Magicians improve their coding skills in a structured and engaging way. This repository provides all necessary setup instructions to get the project running on your local machine.
Before setting up the project, ensure you have the following installed on your machine:
-
PHP (version 7.4 or higher)
-
Composer (PHP dependency manager)
-
MySQL (or a compatible database system)
Follow these steps to set up the project:
git clone https://github.com/mohamedadel96e/Hogwarts-for-programming.git
cd Hogwarts-for-programmingcomposer installCREATE DATABASE hogwarts;mysql -u <username> -p hogwarts < Database/Schema.sql
php -S localhost:8000
Navigate to:
http://localhost:8000
Hogwarts-For-Programming/
│── assets/ # Static assets (CSS, JS, images, etc.)
│── config/ # Configuration files (database, app settings)
│── controllers/ # Controllers handling application logic
│── Database/ # Database scripts and migrations
│── includes/ # Reusable scripts and helpers
│── middleware/ # Middleware for request handling
│── models/ # Database models
│── uploads/ # User-uploaded files
│── vendor/ # Composer dependencies (auto-generated)
│── views/ # Frontend views (HTML, Blade, or Twig templates)
│── .gitignore # Specifies files to exclude from version control
│── .htaccess # Apache configuration file
│── bootstrap.php # Application bootstrap file
│── composer.json # Composer dependencies and autoloading
│── composer.lock # Locked versions of dependencies
│── index.php # Main entry point of the application
│── LICENSE # Project license
│── README.md # Documentation for setup and usage
│── routes.php # Application routes definition
If you would like to contribute:
-
Fork the repository.
-
Create a new branch (
git checkout -b feature-branch). -
Make your changes and commit (
git commit -m 'Add new feature'). -
Push to your fork and submit a pull request.
This project is licensed under the MIT License.
For any issues or questions, feel free to open an issue in the repository or reach out to the maintainers.
Happy coding! 🧙♂️✨