Menu

1 / 2

Building an app for LunarPHP – eCommerce

DEV Community: laravel·imzeeshan·13 days ago
#Kr14CIRQ
#devtolaravel#devto#dev#ecommerce#mobile
Reading 0:00
15s threshold

I was exploring modern eCommerce solutions like Medusa for Typescript, Saleor for Python/Django and Lunar for Laravel; while most of them have a robust ecosystem - Admin/Headless eCommerce, REST/GraphQL API, plugins and front-end framework. Almost all of them do not have a standard mobile app.

This weekend, I thought about how AI Coding tools like Cursor can help bridge that gap. A simple idea was to bridge the model (as in MVC ) across the eCommerce solution and the Mobile App.

I took Lunar, asked Cursor to migrate the models from Lunar to a Flutter App, for type safety and data parity across the back-end and the mobile app. In a few prompts, I was able to build a complete mobile app in flutter that consumed the GraphQL endpoints.

The website is Friendly Diamonds , it exposes it's API at https://friendlydiamonds.com/api/us/config/shop/lister-cards (common for a headless ecommerce / cms apps to expose its API for the frontend).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.