Goodnight! Help to clear up all the mess in my head :) Developing a project - document management. In general, there is a menu, when opening a table is loaded from the Oracle database, new data is added. In other matters, nothing supernatural, the main logic through Oracle (all procedures, functions). The project will be written in angular + Rest yii2. The web server chose nginx. How many I read manuals, under angular it is more preferable than node, only a problem with return of files. I just can’t decide whether to separate the statics and dynamics on the nginx + node? Through nginx, proxy dynamics to node and cache. I am developing on a separate virtual machine, uploading it via git to the main server. For speed and even to expand the horizon, I decided to try Grunt + yeoman. Those. you need to put a grunt server locally, you shouldn't put it on production.

But if we take into account the project, where the front on the angular is only drawing the interface (language, menu), data (table, number of working processes, etc.) from the database. Should I separate nginx + node? Or leave everything on nginx?

  • The less links and layers, it is always better. - borodatych

1 answer 1

angular and without node does an excellent job; it is inconvenient to just write, for example, you need to connect some kind of bower component , then a node is just one command: bower i component_name , and to not throw everything on the server through git , throw your files there and just do bower i command bower i . You can still do this:

  1. on a local computer to put node for convenience in development
  2. upload all the files on the server, and everything will work there
  • Well, and the difference in speed will not be noticeable? If to compare nginx (proxy) -node or only one nginx? Just through the node, you can immediately use api-oracle, then yii2 will not be needed - Coder
  • I can’t say about speed, I did not try to test it, but it’s up to you to decide on what to program. If a node doesn’t know well, it will be easier on yii2, but as for me it’s more interesting to sort out something new) - Іvan Turcan
  • For this, and I want to learn, to raise my skill :) that's just in time to be in time - Coder