Best way for deploy angular.js application made with yeoman?

前端 未结 1 1404
Happy的楠姐
Happy的楠姐 2021-02-08 05:27

I´m building application SPA using angular.js with yeoman which connect with a API RESTful made in Java using spring-MVC . i´m begginer for deploy web applications in angular

1条回答
  •  梦谈多话
    2021-02-08 06:20

    Then your frontend code is production-ready, just run $ grunt build
    and serve static resources produced by Yeoman (Grunt in fact) by the very same server that is responsible for providing the backend of your app.

    take a look at my answer to similar question, showing project structure and some necessary configuration for Yeoman & Spring-MVC.

    In some more advanced deployments scenarios, there might be a need for introducing load-balancing and you might need separate servers for the frontend and backend, but we are talking about basic config here.

    0 讨论(0)
提交回复
热议问题