r/SpringBoot • u/Dull_Specific_6496 • Aug 03 '24
Deploying of a spring boot &angular app
Hi I created a spring boot & angular application with mysql as a database and i want to learn how to deploy it. Is there any videos or articles I can follow because honestly i do not have any idea where to start from
24
Upvotes
2
u/Glad_Mycologist_3528 Aug 03 '24
There are multiple ways If u are on Cloud, u can choose plan platform as a service provided by the cloud provider, in this plan, Cloud will provide you a virtual machine + runtime environment (JRE or JDK) ready to use and u need just to upload JAR file.
An example of this on Azure is App service
For the front end, you can build your project and upload files, js, and html css to Cloud CDN, like S3 on AWS.
For the Databse, the cloud provider can provide for you a database server ready like RDS on AWS.
The second way is to purchase a VPS and install on it JAVA, MySQL, and Nginx or Apache to serve the front end.
Run your JAR file on the server as a linux service using SystemD or initD
https://docs.spring.io/spring-boot/docs/1.4.0.RC1/reference/html/deployment-install.html#deployment-service
Upload you build front to Nginx