I am new to MVC. Please bear with me.
I know Thymeleaf is the preferred way of developing MVC application with spring. In this way, you have the index.html inside of src/main/resources/templates.
I want a similar experience but with a javascript framework. Is that possible? (what is that even called).
I have been looking into vue.js as Angular 4 looks very "bloated" and heavy.
Any help or suggestion is greatly appreciated.
You can use spring boot with Angular or any other SPA frameworks. There are more than just one approach, but I think the most common is creating RESTFul services using spring boot and these services will be consumed by an Angular or other JavaScript app.
I use to create React Apps that talks with services created in Java (using Spring Boot). All data transfer between back and front end is handle by JSON files.
Hope it helps to clarify your ideas.
Related
I'm new to Js frameworks like Reactjs, AngularJs.
And I'm tasked by my customers with the responsibility of researching to integrate Thymeleaf with one of javascript framework to handle common components (commonality and componentization task) in my project.
But i'm wondering whether it's necessary to use a js framework along with SpringMVC and should we combine these technologies in java web application?
Thanks alot. I have searched for result for hours but no appropriate one found!
please refer blow 2 link,
https://github.com/noveogroup-amorgunov/spring-mvc-react
https://medium.com/#pietroghezzi/spring-and-react-js-the-easy-way-5abe8a529058
I develop differently these examples, first I develop frontend project and build. after creating an MVC project and moved my static build into the static folder. then build java project got a working project.
I a have an Angular 5 project up and running, and I would like to add a CMS to allow admin control over content.
I would like to use something that works with NodeJS, ApostropheCMS state that any front-end application can integrate with their technology, but I can't find anything to help me understand how this is done.
I am Looking for help to understand the integration process, if possible at all !?
And if it isn't then what would be alternative solution considering the Angular 5 project.
Thanks in advance
you can do this using the apostrophe-headless module. In that configuration you could build a separate backend site just for editing the content and use the headless APIs from your angular site so you don't have to deal with any disagreements between them over frontend things.
I'm developing a project with a team in which we need to create a simple CRM. Some people recommended us Vue.js to create a great looking UI, but the problem is that with the team we mainly use java. So, we wanted to know if it's there a way in which we can connect a UI made with Vue.js with backend made in java. Any recommendations on how to do it? I've searched a bit and some articles say we can use java+tomcat to connect the Vue.js UI. We need to know if these kind of integration is possible before starting to spend time into making the UI in Vue.js if we can't connect it with our java backend.
Thanks.
I did an example of a project that integrates a java api (built with spring boot) and a vue.js frontend. It uses frontend-maven-plugin to build the frontend and copy it into the resources.
The source is in my github repo
Yes is possible, see this question
you will use your java application which is your "backend" as web service.
first of all: i am completey new to ionic!
I have experience in Java programing. And i have to program a application for my studies.
How do i connect ionic with java ?
I found many examples using java programming like Restful web services and other example used javascript.
Thanks
Your best bet for integrating an Ionic app/client with a java server is going to be loading JSON data over HTTP.
See the documentation on the Angular HTTP module here. https://docs.angularjs.org/api/ng/service/$http
Another option would be to return HTML, but you'll lose a lot of benefits of Angular presenting it this way.
Thanks, Dan
I have a MVC project where the web portion is in Angular JS. It was asked of me to create a DB project which I did. We are now concerned with the Angular JS fetching data. Currently there exists a couple of project in the solution representing EF, and in the web project a Web API that interacts with EF, however it is incomplete. However I was considering using an Angular JS Module, Controller, and Service that will communicate with a MVC controller returning a JsonResult as shown here:
Angular JS with MVC Example
Since I created the DB project, I don't really feel the need for EF, but maybe this is a bad practice.If there are any suggestions on what is the standard practice to best fetch data for Angular JS I would love to know as I'm having a hard time pinning what approach is best for my scenario. Thanks.