This project is a basic CRUD application for an e-commerce website built using the Laravel framework.
- PHP - Laravel Framework
- Bootstrap CSS
- MySQL Database
Laravel is a web application framework with expressive, elegant syntax. Development is made enjoyable and creative with Laravel, as it takes the pain out of common web development tasks.
- Docker
- Docker Compose
- PHP (for local development)
- Composer (for local development)
- MySQL (for local development)
-
Clone the repository:
-
Navigate to the project directory:
cd your-laravel-project
-
Create a
.env
file based on the provided.env.example
:cp .env.example .env
-
Modify the
.env
file to configure your environment variables, including the database settings and mail settings.
-
Start the Docker containers:
docker-compose up -d
-
Access the application at http://localhost in your web browser.
-
Install dependencies:
composer install
-
Start the development server:
php artisan serve
-
Access the application at http://localhost:8000 in your web browser.
Once the application is running, you can perform the following tasks:
- Register a User: Create an account on the e-commerce website.
- Browse Products: View the list of available products.
- Add Products to Cart: Select products and add them to your shopping cart.
- Checkout: Proceed to checkout and complete the purchase.
- Manage Products (Admin): As an admin, you can add, edit, and delete products.
Contributions are welcome! If you want to contribute to the development of this project, 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 fork.
- Submit a pull request with a detailed explanation of your changes.
You need to configure the following environment variables in your .env
file:
APP_NAME
: Name of your Laravel applicationAPP_ENV
: Application environment (local
,production
, etc.)APP_KEY
: Application keyAPP_DEBUG
: Debug mode (true
orfalse
)APP_URL
: Application URLDB_CONNECTION
: Database connection (mysql
)DB_HOST
: Database hostDB_PORT
: Database portDB_DATABASE
: Database nameDB_USERNAME
: Database usernameDB_PASSWORD
: Database password- Other variables for logging, caching, sessions, mail, AWS, etc.
This project is licensed under the MIT License.