The Leafy Liberties is a PHP-based bookstore project developed using the MVC (Model-View-Controller) architecture, MySQL as the database, and Tailwind CSS for styling.
- Copy the
.env.example
file and rename it to.env
. - Open the
.env
file and configure the necessary environment variables according to your setup (e.g., database credentials). - Open your terminal or command prompt and navigate to the project directory.
- Navigate to the
docker
directory within the project. - Run the following command to start the Docker containers:
docker-compose up
This command will set up the required containers for the project, including the PHP server and the MySQL database.
- Once the containers are up and running, you can access the project in your web browser using the provided URL or localhost address.
The project follows a typical MVC structure:
-
app/
: Contains the core application files.Controllers/
: Contains the controller files responsible for handling the logic and interaction with the views.Models/
: Contains the model files responsible for interacting with the database.Views/
: Contains the view files responsible for rendering the user interface.
-
resources/
: Contains both non-public and public resources. -
docker/
: Contains the Docker configuration files. -
core/
: Contains the core files of the MVC system. -
routes/
: Contains the router files. -
utils/
: Contains utility classes.
If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Open a pull request to the main repository.