aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
158 stars 43 forks source link

Question: Using other admin UI for shop administration #32

Closed dev7ch closed 6 years ago

dev7ch commented 6 years ago

Hello, i would like to try an integration of an admin theme ( eg. Core UI, Vue), therefore I am a bit unsure what would be the best starting point.

Imagine the scenario to put a new admin theme to aimeo-laravel, how would you start?

How would you start? I am able to use the https://github.com/aimeos/ai-admin-jsonadm for full aimeos shop functionality?

I would like try avoiding the use of jquery.

It´s just as a test and learning session, maybe for a project, ofc if sth comes out it will be open to everyone

aimeos commented 6 years ago

You should create a new extension (e.g. dev7-admin-vue), add any PHP/HTML/Vue.js code there and use the JsonAdm API for retrieving and storing the data you need in your new admin interface implementation

dev7ch commented 6 years ago

Thank you. Yes i ll start an independet Extesion.

But while i was looking into this repo i found inclusions from the jsondadm repo: https://github.com/aimeos/ai-admin-jqadm/blob/58bf504613624d1e8b29ccfb108837d05d28ecc8/admin/jqadm/templates/catalog/item-standard.php#L34

I am asking my self, is the jqadmin a complete and good example how to see how to deal with jsonadm?or there are better example?

Or may could you provide some links where i can find good examples how to deal with the jsonadm api.

dev7ch commented 6 years ago

e.g. how to login and register via jsonadm would be a good stating point i think.

Is the jsonadm full featured for aimeos? (so I could control Cart, Checkout Wishlist, register, etc all about jsonadm API)

If you would have some links to "headless" example implementations, it would be very kindly and helpful.

dev7ch commented 6 years ago

i figured out how to acces jsonadm ( e.g. http://localhost/_prototypes/shop/public/admin/default/jsonadm/customer?id=2) and json client api.

But i would be very happy if you could give me some tipps how to build a login and auth process.

For now is see in the users table only a basic password hash and remember token field, I assume the remember token is created by the jqadm during login if the remember option is ticked.

Do you think those fields are enough to ensure a secure login scenario via api? What do you think about adding an new separate access token for jsonadm ?

Interesting article about JWT token helper https://medium.com/@mosesesan/tutorial-5-how-to-build-a-laravel-5-4-jwt-authentication-api-with-e-mail-verification-61d3f356f823

aimeos commented 6 years ago

The JQAdm interface uses the Json Admin API for several dynamic features like loading categories and fetching data for the charts on demand. The JsonAdm API should be full-featured so you can access the same data as in the JQAdm interface.

The cart is a frontend only thing (but you have access to the orders).

For authentication, you have to look what Laravel offers for API authentication.

dev7ch commented 6 years ago

Ok, thank you for the explanations. I ´ll close this issue due there isn´t a specific request.