{"id":21753838,"url":"https://github.com/melardev/apiecommercelaravel","last_synced_at":"2025-09-13T00:38:03.235Z","repository":{"id":107256079,"uuid":"171127058","full_name":"melardev/ApiEcommerceLaravel","owner":"melardev","description":"Ecommerce API application built with Laravel (PHP)","archived":false,"fork":false,"pushed_at":"2023-08-29T06:00:27.000Z","size":388,"stargazers_count":10,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T09:41:53.413Z","etag":null,"topics":["api","crud","e-commerce","ecommerce","eloquent","full-stack","laravel","orm","orm-framework","pagination","php","rest","shopping-cart"],"latest_commit_sha":null,"homepage":"http://melardev.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melardev.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-17T13:45:02.000Z","updated_at":"2024-09-22T04:54:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"62d7e336-d57d-4979-98b2-b4f55d4a1579","html_url":"https://github.com/melardev/ApiEcommerceLaravel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/melardev/ApiEcommerceLaravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiEcommerceLaravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiEcommerceLaravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiEcommerceLaravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiEcommerceLaravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melardev","download_url":"https://codeload.github.com/melardev/ApiEcommerceLaravel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FApiEcommerceLaravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274902323,"owners_count":25371074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","crud","e-commerce","ecommerce","eloquent","full-stack","laravel","orm","orm-framework","pagination","php","rest","shopping-cart"],"created_at":"2024-11-26T09:11:49.321Z","updated_at":"2025-09-13T00:38:03.222Z","avatar_url":"https://github.com/melardev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nThis is one of my E-commerce API app implementations. It is written in Php using Laravel framework.\nThis is not a finished project by any means, but it has a valid enough shape to be git cloned and studied if you are interested in this topic.\nIf you are interested in this project take a look at my other server API implementations I have made with:\n\n- [Node Js + Sequelize](https://github.com/melardev/ApiEcomSequelizeExpress)\n- [Node Js + Bookshelf](https://github.com/melardev/ApiEcomBookshelfExpress)\n- [Node Js + Mongoose](https://github.com/melardev/ApiEcomMongooseExpress)\n- [Python Django](https://github.com/melardev/DjangoRestShopApy)\n- [Python Flask]()\n- [Golang go gonic](https://github.com/melardev/api_shop_gonic)\n- [Java EE Spring Boot and Hibernate](https://github.com/melardev/SBootApiEcomMVCHibernate)\n- [Ruby on Rails](https://github.com/melardev/RailsApiEcommerce)\n- [AspNet Core](https://github.com/melardev/ApiAspCoreEcommerce)\n\n\nThe next projects to come will be:\n- Elixir with phoenix and Ecto\n- AspNet MVC 6\n- Java EE with Jax RS with jersey\n- Java EE with Apache Struts 2\n- Spring Boot with Kotlin\n- Go with Gorilla and Gorm\n- Go with Beego\n- Laravel with Fractal and Api Resources\n- Flask with other Rest Api frameworks such as Flask-Restful, flask-apispec\n- NodeJs with Knex (without Bookshelf, this one is already done, see above links)\n\n# Getting started\n1. Git clone the project\n1. Rename .env.example to .env and change the values as needed\n1. Migrate\n`php artisan migrate`\n1. Seed the database\n`php artisan db:seed`\n1. Launch with php artisan serve --port=8080\n1. Import api.postman.json into postman and begin issuing requests \n\n# What you will learn\n- Laravel\n    - Middlewares\n    - Authentication\n    - Authorization\n- Eloquent ORM\n    - associations: hasMany, belongsTo, belongsToMany\n    - scopes\n    - complex queries\n    - paging\n    - eager loading, select columns\n    \n# Features\n- Authentication / Authorization\n- Paging\n- Products, Orders, OrderItems, Addresses, Custom User model, Tags, Categories, Comments, TimestampedModel, FileUpload(Polymorphic)\n- Products associated to images, file upload without any 3party package\n- CRUD operations on products, comments, tags, categories\n![Fetching products page](./github_images/postman.png)\n- Orders, guest users may place an order\n![Database diagram](./github_images/db_structure.png)\n\n# Useful Artisan commands\n`composer dump-autoload`\n`php artisan migrate:reset`\n`php artisan migrate`\n`php artisan migrate:refresh --seed`\n`php artisan help make:model`\n- Scaffold with -a option: migration, controller and model\n`php artisan make:model Model/Product -a`\n`php artisan route:list`` `\n`php artisan make:migrate`\n\n    \n# Todo\n- Improve the seeding logic, there are orders with no order item.\n- Security, File upload validations\n- Unit testing\n- Improve performance, improve database queries, they are fetching just everything now\n\n\n# Steps\n- Set a link from public/storage to storage, that way uploaded files can be accessible\n`php artisan storage:link`\n\n\n- This is needed for the migration rename_name_column where I rename name to username\n`composer require doctrine/dbal`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelardev%2Fapiecommercelaravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelardev%2Fapiecommercelaravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelardev%2Fapiecommercelaravel/lists"}