Loading repository data…
Loading repository data…
YousseifNady / repository
A lightweight e-commerce RESTful API built with Laravel, featuring authentication, product management, order processing, caching, and event-driven architecture.
EcomLite is a lightweight e-commerce RESTful API built with Laravel. It demonstrates the implementation of core e-commerce functionalities, including product management, order processing, authentication, and search capabilities. The project follows clean code principles and leverages Laravel features such as caching, pagination, validation, and event-driven architecture to deliver a scalable and maintainable backend application.
This project was built to showcase practical backend engineering skills and modern Laravel development practices while providing a solid foundation that can be extended with additional features and integrations.
Make sure you have the following software installed :
Follow these steps to set up the project locally :
# Clone the repository
git clone https://github.com/YOUSSEIFJOO/ecomlite.git ecomlite
# Navigate into the project directory
cd ecomlite
# Install PHP dependencies
composer install
# Install Node.js dependencies
npm install
1- Copy the .env.example file to .env and set your environment variables :
cp .env.example .env
2- Set your database credentials in the .env file :
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ecomlite-db
DB_USERNAME=root
DB_PASSWORD=yourpassword
3- Generate the application key :
php artisan key:generate
4- Migrate the database :
php artisan migrate
To start the local server and test the application, use :
php artisan serve
Put These Values inside your .env :
API_KEY_SWAGGER_DOCS=9073d1808f1911ef8d830d5be99a1e44
SECRET_API_KEY=6e880ef08f7b11ef95ac175a6e3eb139
You can now access the application at http://localhost:8000.
At rhe first run :
php artisan serve
Then open this URL in your browser :
http://127.0.0.1:8000/ecomlite/apis/9073d1808f1911ef8d830d5be99a1e44
If you'd like to contribute :
1- Fork the repository.
2- Create your feature branch (git checkout -b feature/your-feature).
3- Commit your changes (git commit -m 'Add your feature').
4- Push to the branch (git push origin feature/your-feature).
5- Open a pull request.
.env file.This will give the project a professional touch while indicating performance-focused suggestions for further improvements.
Note : When you try to use ( Laravel Octane && Redis ) Ensure you installed the requirements on your machine at the first.
Developed by Yousseif Nady. Reach out at yousseifnady59@gmail.com for any questions or inquiries.