Abhishek Gangadhar
Abhishek Gangadhar

Reputation: 131

Can We use Java EE Servlets for the backend with Angular as the frontend?

I was wondering if it is possible to use Angular(2+) as the frontend, and use specifically Java EE Servlets as the Backend? If so, can the project be stored as a WAR file?

Thank you in advance.

Upvotes: 0

Views: 2528

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222682

Yes it's possible wiht JEE servlets with angular2+ as a front end.

You can create the angular project using angular cli. Go through the following link,

[Connecting your Angular 2 App to your Java EE Backend][1]

For creating angular project you can

From the Eclipse menu, choose File>New>Dynamic Web Project; or right click in Project/Package Explorer and choose New>Dynamic Web Project.

Initialize using angular cli

Right-click the newly created project and select Show in>Terminal. and type ng init , after that you can run npm start and see running your application.

Upvotes: 1

Related Questions