L
L
Los Angeles2015-10-30 15:53:12
MongoDB
Los Angeles, 2015-10-30 15:53:12

How to organize the project structure?

Good day.
I want to develop a project for ordering minibuses. There will be a website (not really a SPA, rather with dynamic content loading) for customers where you can make an order, there will be a website (SPA) for minibuses, where they will see orders, and will be able to control the availability of seats for such and such a time, and there will also be Tipo admin, to add a new minibus.
(from the tags you can see that the site will work on Node Mongo and Express)
Question: Do I understand correctly, there should be one server application on Express, or there should be 3 different ones (but with the same models) to which Nginx will proxy requests . And another question of organizing the Front-end.
Thanks in advance.
ZY: maybe if there are some good examples on Github, I will be happy with the links.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2015-10-30
@cleverpope

You can have one, or you can have three (order a minibus.rf / order, order a minibus.rf / my-orders, order a minibus.rf / admin panel). Express, by the way, allows you to mount another application along some path. And you can place them all in one folder, just make three entry points (app-order.js, app-myorders.js, app-admin.js). So making one out of three applications is not a problem, on the contrary, it will most likely be a little more difficult.
And what about the organization of the frontend, any questions?

Y
Yaroslav Lyzlov, 2015-10-30
@dixoNich

The organization of the frontend depends on the framework you are going to use. For simplicity, you can look at yeoman generators.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question