converting nodejs project into java spring mvc

Hi,
I have a basic application project which is made in nodejs with backend and javascript etc in frontend.
I want to convert the backend into java spring mvc.
Looking for any ideas to start. Is there any standard way to do it ?
want to get rid of node.js

Thanks
Robin
Rohit BajajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gurpsbassiCommented:
how does the front end communicate with the node back end at the moment?

I've done something similar where the front end was a javascript driven app talking to nodejs through http using request.js. It was at this point I simply changed the url it was requesting to be one from a SpringMVC backend which returns JSON.
0
Rohit BajajAuthor Commented:
My application also front end is in javascirpt and talks to nodejs through http using server.js.
Should make amendments in the same project or create a new java spring project from scratch and add files one after the other as different things come up
0
Rohit BajajAuthor Commented:
Also i found that my application uses libraries like codemirror .
Can this be integrated without node.js ?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

gurpsbassiCommented:
I'm not familiar with codemirror.

As for refactoring your project, I would ensure you have some tests in place first. You want to prove that by sending the a resquest produces the same response before and after refactoring.
i would keep it in the same project. Although its also acceptable to have a single project for the UI layer and a separate project consisting of the Spring controllers.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rohit BajajAuthor Commented:
HI,
Thanks that helps.
Also can u let me know if there are standard ways i can create those tests. My application is a very simple application which just takes some code reformats it and put it into db
0
gurpsbassiCommented:
If you are able to do so then write some unit tests.
I would also put some acceptance tests in using something like JBehave or Cucumber.
1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.