M
M
maxemga2021-02-27 12:56:08
Node.js
maxemga, 2021-02-27 12:56:08

How to make a store a product on the site?

I was faced with the task of making a store on the site with the ability to add products if you are an admin.
I have a lot of questions about this, especially considering that I develop as a Front-End developer, but I didn’t touch the Back.
As I understand it, the logic should be such that the site should have a form for adding a new product, from this form all data is taken and sent into the database, from there they appear on the site in the form of such a card.
Also do I need a division into user and admin so that the user can only add items to the cart and the admin can add items?
I want to write in Node.js, because I am studying this language and it will be somehow useful to me from the same php and how correct is this solution? Or is it better to score and write in PHP?

603a16014cbb2136397052.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2021-02-27
@maxemga

If you have an order for an online store, then the most time-efficient way would be to take a ready-made back-end engine and simply put your layout on it.
And yes, most online store engines are written in php, but there are also .
If you don’t have the task of “doing it within a reasonable time”, and you are doing it for self-study, then it’s up to you to decide which stack you want to learn.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question