dimanche 15 mars 2015

Yeoman AngularJS frontend + Spring Backend

I have a yeoman webapplication with AngularJS which works great! Now I want to do some Ajax request to the backend.


The yeoman application runs on localhost:9000 (I run it with grunt serve which gives me fast live reloads)


The backend spring application runs on localhost:8080 (I run this with mvn spring-boot:run)


What is the workflow for testing the frontend with the backend? I can always copy the frontends build code to the backends public folder but its time consuming. Or I could do some cross domain Ajax attempts but not sure this is the right way to go either.


What is the fastest and easiest way to integrate the frontend with the backends API for testing?


Aucun commentaire:

Enregistrer un commentaire