Hibernate + Spring MVC + AngularJS - Do I need Maven? - angularjs

I have to build an application for a course assignment, using Hibernate, Spring MVC and AngularJS. Almost all of the tutorials I found on the internet were presenting a Maven project.
My question is: Is it mandatory to create a Maven project, or is a Dynamic Web Project (Eclipse) enough?
I am not familiar with Maven, but I have created Dynamic Web Projects before (using Hibernate, JSP views, etc).
Thanks in advance!

The purpose of Maven (or Gradle) is to coordinate all the (JVM) dependencies and package everything correctly. It's much easier to let tools do tedious work (that's why you're using Hibernate and a database instead of inventing your own storage).
I recommend creating a Spring Boot project using Spring Initializr, which will set all of the build and launcher for you. Use m2eclipse (my preference) or the Gradle Eclipse Plugin to import the skeleton into Eclipse.

Related

What is the most popular backend framework is used for ReactJS?

My existing project I have :
Frontend Framework - PHP Codeigniter and PHP Laravel
Backend Framework - JAVA Springboot
I'm trying to change Frontend Framework to ReactJS. I want to know what is the most popular backend framework to use with ReactJS and Why? Please explain. Should I change Backend Framework from Springboot to other one such as ExpressJS?. How about the performance?.
Thank in advanced.
I personally prefer NodeJS + ExpressJS because this framework are js based and widely support by community.
I can only answer you from personal Experience.
1. NodeJS + ExpressJS
This combination is the most basic version of a backend for React but very effective. For most of you application this should be enough. You can achieve everything you want with this. The performance is great.
2. Strapi Highly Recommended
Strapi (Official Page) is a great framework as backend. Most of the typical functions you want for a backend are already implemented or can be easily added. Performance is also great.
3. Meteor Recommended
Meteor (Official Page) is an all around package. Many Plugins and a active community. Excellent for beginner and great for experienced user. Easy to setup and it also manage you database for you if you want. Performance is ok

JHipster vs MEAN-Stack vs MERN-Stack

I am familiar with developing AngularJS and Angular 2/4 UIs utilizing JHipster 4's JPA CRUD scaffolding but it feels unnatural. And I think developing MEAN-Stack UIs is the path of highest productivity.
How much refactoring is involved utilizing MEAN-Stack UIs with JHipster JPA (MongoDB) and Angular scaffolding?
Also, if using JHipster's new React support, how much refactoring is required to utilize MERN-Stack UIs with JHipster JPA (MongoDB) and React scaffolding?
Oh, I forget to mention my development target is PWAs (Progressive Web Apps) aka mobile first design.
You'll have to fork the jHipster generator, add your own templates for mongodb, express.js and nodejs.
The server side templates are mostly in generators/entity-server/templates, and generators/server/templates. These template files are written as EJS templates (EJS).
One of the steps during the app generation is to create JSON files from the JDL file. You can run just the json creation using a command like this:
yo jhipster:import-jdl jhipster-jdl.jh --db=mysql --json-only=true
The JSON files will get created in .jhipster folder (note the "." in front which makes the folder hidden) under your project.
Create your own sub-generators similar to the "server" and "entity-server" sub-generators, that use the generated JSON. The templates will have JavaScript that uses nodejs, express.js and mongodb, instead of Java with JPA, and Spring Boot.
This is not going to be easy, although you could follow the JHipster code and create the sub-generators.
I guess someone might have already done all this in one of the forks from JHipster, in which case you might want to start from there.

Angular 2 Deployment

When using Angular 1, development is easy, just quote script in html such as
Deployment is just copy a few .js/.html/.css files to my iis server.
However, when testing with Angular 2, many npm/typescript packages (more than 500 files) are included in a simple hellow world webpage.
Is there any tools that help for deploying Angular 2 apps?
thanks
mintssoul
Angular 2 comes with many build options.Most popular and recommended one is Angular cli.
https://github.com/angular/angular-cli
It uses web pack which is powerful framework for building client side applications and minification,bundling,cache bursting, even gzip compression are inbuilt which are great to reduce package footprint and make your life easier for angular 2 application build and deployment.
App specific file copying or custom logic can be incorporated using gulp : http://gulpjs.com/

Why should I use front-end plugins with my sbt playframework project?

If I have an angularjs frontend and am using play in the backend, why do people use the various sbt-plugins?
I understand how to use them, to compile the frontend etc. but isn't it better just to seperate the 2 projects completely and just use the native frontend tools like npm, bower, etc. ?
I'm trying to understand if there is some advantage to using the sbt plugins.
The sbt-web tools are useful when:
You have a small amount of front-end code, so that it's not worth setting up a separate build & deployment infrastructure for it
When you have shared code and/or compiled-in data between client and server, eg: javascript model code running in Nashorn as well as the browser, ScalaJS code interoperating with javascript
When you have fixed data (eg: internationalization tables) that are compiled into both client and server
When you have written unit tests in Scala for front-end code (eg: using ScalaCheck to property-check javascript)
When your dev team is already familiar with sbt, but not with other tools

Grails - Ionic - AngularJS - Is it a good idea to work in this Env.?

I want to create an application using Ionic and AngularJS and Grails?
Also, I want to use Grails Spring Security Core plugin for login or registrations procedure.
Although, Stack Overflow is not the correct site to ask this type of questions which simply needs suggestions and other's opinions.
Well, we are here to help. You can try other StackExchange sites like https://softwareengineering.stackexchange.com/.
Grails + Ionic + AngularJS is a perfect combination of frameworks to build a fully functional and elegant mobile application for all platform. We've build various mobile applications using these three technologies and they work awesome.
Since Grails fully support the concept of rest API for JSON and AJAX based calls, it is absolutely possible to use it along with AngularJS. AngularJS doesn't care about the server-side technology you are using as long as your server side code can communicate over JSON data.
Ionic is just a beautiful front-end SDK which works on the top of AngularJS and provides various utilities to develop a hybrid user-friendly mobile APP.
So you can easily use these 3 technologies and get your mobile app ready in a few weeks.
Ionic doesn't care about what you use as a server stack. As long as you create a service which has well defined interfaces (REST?), you should be fine.
I for example use PHP (yeah, I know, shocking, right?) Slim framework + Postgres database as my backend.

Resources