F
F
fan92rus2020-12-28 22:37:00
Vue.js
fan92rus, 2020-12-28 22:37:00

Where on the front is the endurance of logic?

The bottom line is, there is a back, there is registration, authorization and two crud. I got to the point that we can take crud into vuex actions with api prolayer. but it might be better to add repositories or generic repositories for crud. and where are non-standard requests, rega authorization, buying a like, etc.?
you can create services, but we will pull them again from the view or enter commands and the event bus.
in general, I didn’t work with the front in my life and this is a little difficult for me ..
Thank you)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gumper, 2020-12-29
@Gumper

Hello, depending on the logic.
Usually they create a utils/helpers folder where reused functions are placed.
If we are talking about something more complicated, then write your services.
In general, if you want to learn more about how to do this, then you need to either go to the company as a junior, or read boilerplate. These are ready-made project templates that show a possible variant of how a project can be built. Here's the most popular one: https://github.com/zmts/beauty-vuejs-boilerplate
It may be hard to figure out what's going on there at first, but be patient and remember "That's the way"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question