SenseNet / sensenet

Open Source Content Services Platform written in .NET
https://sensenet.com
GNU General Public License v2.0
173 stars 112 forks source link

Distributing Single page applications from sensenet ECM #99

Closed gallayl closed 7 years ago

gallayl commented 7 years ago

The problem

During SPA development, we are facing some difficulties on how to serve bundled frontend files from e.g. gulp or webpack, or work parallel with a frontend and a backend environment (e.g. frontend served from by an Express/Webpack/Gulp dev.server and sensenet by IIS). I've collected some ideas, but we need to talk about which one should be supported

Serve sensenet ECM from IIS and frontend from frontend DEV server

Pros

Cons

Upload and serve bundles from sensenet ECM with Explore (current solution)

Pros

Cons

Create a static site for frontend distribution and a web application for sensenet one level below

Pros

Cons

Create a fallback route in an ASP.NET web app that picks up and serves static files

Pros

Cons

Redirect OData and Login requests from frontend dev server

Pros

Cons

Redirect every request excluding OData and Login from IIS to dev server

Pros

Cons

borsi commented 7 years ago

The team's opinion is that the first issue should be solved anyway and it would make sense for frontend devs to develop their SPA's through CORS.

So the decision is option 1.