https://github.com/radanpro/shop
https://github.com/radanpro/shop
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/radanpro/shop
- Owner: radanpro
- Created: 2023-09-10T16:58:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T22:06:46.000Z (5 months ago)
- Last Synced: 2025-02-15T16:57:50.332Z (3 months ago)
- Language: HTML
- Size: 3.3 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shop with MVC PHP
This is a web application project that implements a simple online shop using the Model-View-Controller (MVC) architectural pattern in PHP.
## Installation
To download and run this project on your local machine, follow the instructions below based on your operating system:
### Linux
1. Open a terminal.
2. Clone the repository using the following command:
```
git clone https://github.com/abdulrahmanRadan/shop.git
```
3. Change into the project directory:
```
cd shop
```
4. Start a local PHP development server:
```
php -S localhost:8000
```
5. Open your web browser and visit `http://localhost:8000` to access the application.### Windows
1. Download and install XAMPP from the official website: [https://www.apachefriends.org](https://www.apachefriends.org).
2. Open XAMPP and start the Apache and MySQL services.
3. Clone the repository into the `htdocs` directory of your XAMPP installation. You can do this by either downloading the repository as a ZIP file and extracting it into the `htdocs` directory, or by using the following command in your command prompt:
```
git clone https://github.com/abody-ali/shop.git C:\xampp\htdocs\your-file-name
```
4. Open your web browser and visit `http://localhost/your-file-name` to access the application.## Requirements
To run this project, you need the following:
- PHP (version 7.0 or higher)
- MySQL or MariaDB
- Web server (such as Apache or Nginx)
- XAMPP or a similar PHP development environment (if running on Windows)## Database
you needs to import the database file using XAMPP.
- Here are the step-by-step instructions:1. Start XAMPP and ensure that the MySQL service is running.
2. You can do this by opening XAMPP and checking that "MySQL" has a checkmark next to it in the menu.
3. Open a web browser and type "localhost/phpmyadmin" in the address bar.
4. You will be redirected to the phpMyAdmin interface.
5. Create a new database by clicking the "New" button in the left sidebar.
6. Give the database a name of your choice for your project (e.g., "shop_db") and select the required character encoding, then click the
"Create" button.
7. Once the database is created, go to the "Import" tab at the top of the page.
8. Click on the "Choose File" button and select the database file from the project (e.g., "shop_db.sql").
9. Leave the other options as they are and click the "Go" button at the bottom of the page.
10. phpMyAdmin will read the database file and import it into the database you created.
11. Once the import is complete, a confirmation message will appear indicating the success of the operation.
#### With this, you will have a ready-to-use database for your "Shop with MVC PHP" project. Please make sure to update the database connection information in the necessary project files to ensure proper communication with the database.## Usage
// not yet
## **Note: This project is a work in progress**
Please note that this project is currently under development and has not been completed yet. You may encounter some work that is subject to improvement and change at this stage. We appreciate your understanding and patience as we continue to work on enhancing and refining the project. Feel free to contribute or provide feedback to help us improve it further.
## Contributing
Contributions are welcome! If you would like to contribute to this project, please follow the guidelines in [CONTRIBUTING](CONTRIBUTING.md).
## Contact
If you have any questions or feedback, please feel free to contact the project maintainer at [[email protected]](mailto:[email protected]).
---