Deploy Full Stack Application (Spring-Boot+MySQL+React) to AWS(EC2, RDS, S3) | new 2023

  Рет қаралды 28,844

Phegon Dev

Phegon Dev

Күн бұрын

Sudo Yum install java17: docs.aws.amazon.com/corretto/...
s3bucketPolicyLink: gist.github.com/phegondev/bb4...
Link To Project: github.com/phegondev/employee...
OTHER HELPFUL COUSES
SpringSecurityWithJWTFullCourse: • Spring Boot Security &...
TimeStamps
0:00 -- Introduction
1:13 -- clone project repo
2:50 -- create and configure a cloud database on RDS
9:57 -- connect the created cloud database to MySQL Workbench
11:24 -- connect your amazon cloud database to spring-boot(backend)
14:31 -- create and configure an EC2 instance
23:44 -- connect to our amazon cloud server(EC2) from our local machine using command line/terminal/shell
26:16 -- build your project and deploy to AWS EC2 cloud
35:14 -- connect your cloud url to frontend app(reactJs)
38:18 -- deploy our frontend (reactJS) to amazon S3
43:23 -- Full deployment done. Test the entire flow
45:00 -- like and sunscribe

Пікірлер: 153
@xMedivh
@xMedivh 9 ай бұрын
Thanks buddy. I needed this!
@fidessaisiko
@fidessaisiko Жыл бұрын
Great tutorial. Very detailed and helpful for a beginner like myself. Thank you :)
@PhegonDev
@PhegonDev Жыл бұрын
Thanks for feedback. I'm happy tw's helpful
@antte2012
@antte2012 10 ай бұрын
Thank you for the awesome tutorial! Finally managed to deploy my application. The whole process is clearly and thoroughly explained, well done!
@PhegonDev
@PhegonDev 10 ай бұрын
I'm Happy to hear the success 👍
@bigmark69
@bigmark69 9 ай бұрын
Thank you Den! Really clear and simple tutorial for beginners. Ran it with PostgreSQL instead but the steps were similar enough to follow along!
@PhegonDev
@PhegonDev 9 ай бұрын
My friend. I'm happy it was of help to you. 👍🏽
@user-kh9xs5lq9p
@user-kh9xs5lq9p 8 ай бұрын
this tutorial is very helpful. thank you Den.
@PhegonDev
@PhegonDev 8 ай бұрын
I'm glad it helped
@buraksenses332
@buraksenses332 9 ай бұрын
senin tassana kurban abim benim
@user-lo1nx5pc7g
@user-lo1nx5pc7g 2 ай бұрын
Thank you a lot! Everything works perfect and I used this for my college project. You are a lifesaver.
@PhegonDev
@PhegonDev 2 ай бұрын
Thanks Немања 🙏🏽 I appreciate this ❤
@vaibhavsaxena1310
@vaibhavsaxena1310 Жыл бұрын
Really very helpful tutorial :)
@PhegonDev
@PhegonDev 10 ай бұрын
I'm happy it helped 👍
@user-th3dv6ku8p
@user-th3dv6ku8p 9 ай бұрын
Thank you for this tutorial it's a very helpful tutorial for beginners who deploy their springboot and react project on aws server. Thank you so much again
@PhegonDev
@PhegonDev 9 ай бұрын
I'm happy your deployment was a success
@daumtto
@daumtto 27 күн бұрын
You good teacher. :) Thanks bro from south korea
@PhegonDev
@PhegonDev 27 күн бұрын
Thanks Chun for your Compliment. I appreciate 🙏🏽
@user-mz5zi1re7w
@user-mz5zi1re7w Жыл бұрын
thanks Dan it was really helpful
@PhegonDev
@PhegonDev Жыл бұрын
Thanks for the comments 👍
@rtonib2103
@rtonib2103 3 ай бұрын
You are a damn good teacher man, keep it up. Great video!
@PhegonDev
@PhegonDev 3 ай бұрын
Thanks, I appreciate 🙏🏽
@Prod3t
@Prod3t Жыл бұрын
beautiful man ❤
@PhegonDev
@PhegonDev 10 ай бұрын
👍👍
@marshalljoseph6893
@marshalljoseph6893 8 ай бұрын
THANK YOU!
@PhegonDev
@PhegonDev 8 ай бұрын
You're welcome!
@pranitdhane9939
@pranitdhane9939 Жыл бұрын
Nice video bro very helpful.. loved it
@PhegonDev
@PhegonDev Жыл бұрын
Thanks. I'm glad it helped
@xjwjso7155
@xjwjso7155 Жыл бұрын
YOU SAVED MY LIFE!!!!!!
@PhegonDev
@PhegonDev Жыл бұрын
🤗
@GauravGupta-eh6vf
@GauravGupta-eh6vf Ай бұрын
Great Video.
@PhegonDev
@PhegonDev Ай бұрын
Thanks
@Riu879
@Riu879 Жыл бұрын
Great video now i can deploy it my website easily.
@PhegonDev
@PhegonDev Жыл бұрын
I'm glad it helped ✌🏾
@alexlivadaru286
@alexlivadaru286 7 ай бұрын
Thank you for your time and effort, very helpful! Just wanted to let everyone know that if you use vite, the should be a dist folder instead of a build one. Just upload everything from the dist folder and you are good to go.
@PhegonDev
@PhegonDev 7 ай бұрын
👍🏽👍🏽👍🏽👍🏽
@khanhne19
@khanhne19 9 ай бұрын
thanks bro, love u
@PhegonDev
@PhegonDev 9 ай бұрын
Glad it helped ❤️
@Shawnes21
@Shawnes21 4 ай бұрын
Thank you so much!
@PhegonDev
@PhegonDev 4 ай бұрын
I'm happy it helped
@thwartshroom2946
@thwartshroom2946 3 ай бұрын
To those who are watching this video as of now, set public access to private after uploading your database to RDS(do it within an hour) As of February 2024, Amazon made the cost of using public IPv4 addresses no longer free except for certain services like EC2 free tier(750 hours/month).
@terminator96
@terminator96 13 күн бұрын
Does it interfere with deployment and other stuff or does it mean we can only access the rds server through ec2 not mysql workbench from our coumputer
@tomjosi742
@tomjosi742 4 ай бұрын
Excellent job. No running around the bushes, you explained everything in detail from beginning to end. Beginner and it was very helpful. But i want to underline, if our app is for testing purposes ,we should stop running those instances to avoid being charged once we are satisfied with the outcome. And restart them when needed only.
@PhegonDev
@PhegonDev Күн бұрын
@@tomjosi742 thanks Man
@yeshwanthkrishna2052
@yeshwanthkrishna2052 3 ай бұрын
Thanks bro
@PhegonDev
@PhegonDev 3 ай бұрын
🙏🏽
@luisangelgonzalezalmazan3432
@luisangelgonzalezalmazan3432 Жыл бұрын
Hello! Great video! Do you know how expensive is this or where can I find pricing for this? I'm building a springboot+react+mysql application myselft but I have no clue how expensive will it be to host it
@PhegonDev
@PhegonDev Жыл бұрын
For EC2 It is around $0.0116 per hour for the t2.micro instance in the US East (N. Virginia) region. FOR RDS. Instance pricing: The hourly cost for a small DB.t2.micro instance, which includes a single vCPU and 1 GB of RAM, is approximately $0.017 per hour in the US East (N. Virginia) region. Storage pricing: The cost for General Purpose SSD (gp2) storage is approximately $0.115 per GB per month. From here you can do your calculation. OTHER ALTERNATIVES SOLUTIONS I think the major cut will be on AWS RDS. If you are on a budget and your database is still small, you can choose to set up and manage your own MySQL database on a virtual machine (VM) or bare metal server, or another platform with extremely low cost. You can research that. AWS RDS primarily favors big companies. Also, if your application isn’t large and doesn’t have many visitors at the moment, instead of hosting on EC2 you can consider using serverless aws lambda. By this, you pay for only when it’s been used. I may consider creating a tutorial on serverless.
@kenlott6299
@kenlott6299 Жыл бұрын
Great video bro! Deployed my app in one day...but do I have to keep springboot running in my terminal 24/7 for deployment?
@PhegonDev
@PhegonDev Жыл бұрын
No. You can run your app in your server on a screen. So when you detached and exit your terminal, it'll still be up and running.
@anthonyb4
@anthonyb4 10 ай бұрын
Thanks man this is great! I followed and got everything set up, much appreciated. How do I make the app https? Thanks!
@PhegonDev
@PhegonDev 10 ай бұрын
That is because your server doesn't have an SSL/TLS certificate and haven't been configured yet.
@jazzs10
@jazzs10 4 ай бұрын
@@PhegonDev Friend, I have the same problem. Would you help me.
@Thanmay_eeee
@Thanmay_eeee Жыл бұрын
Your video was extremely helpful...Thank you.... Can you please make a video on how we can deploy a fullStack application (Spring boot + Reactjs + MongoDB) to AWS.
@PhegonDev
@PhegonDev Жыл бұрын
That's not a prob. it follows the same pattern. i'll do at free time
@Thanmay_eeee
@Thanmay_eeee Жыл бұрын
@@PhegonDev yes that would be helpful. Can you atleast tell me how can we connect to MongoDB
@erickoffi2621
@erickoffi2621 Жыл бұрын
Thanks you very Helpful
@PhegonDev
@PhegonDev Жыл бұрын
I'm happy it helped
@user-uo6gi2ps8u
@user-uo6gi2ps8u Жыл бұрын
i really enjoyed your video, however, since ec2 is used, to access the full functionality of the website require the activation of the backend... which is not handy in terms of production, could you post a tutorial on Elastic Beanstalk? Thanks in advance.
@PhegonDev
@PhegonDev Жыл бұрын
For Elastin Bean I'll drop a video on that soon. But I want to know the functionilty in question you talking about? For Elastic Beanstalk vs Ec2, Ec2 is more scallable and you are responsible for managing and maintaining with wider range of customization. Elastic do better interms of auto scalling. Will be curious to know the specific functionality you want to acheive with Beanstalk
@PhegonDev
@PhegonDev Жыл бұрын
If it was helpful let me know in the comment below. Also, don't forget to like, subscribe and share
@khalidamerica1848
@khalidamerica1848 7 ай бұрын
Thank you for the tutoriel. Can i get a name instead of the Ip adresse in the backend endPoint so i can link it with other types of hosts ( like github Pages) to be accessible from another device like a mobile or another network ? Or the Ip adresse will work even that is related the network.
@PhegonDev
@PhegonDev 7 ай бұрын
If I get you clearly, what you mean is a link where you can connect to your service. You already have what you need. Your url is http//your_server_public_ip:port/any_other_thig e.g path variable or your deployed service. As long as you call it you can connect to your deployed service except you chose to add some additional security configuration
@khalidamerica1848
@khalidamerica1848 7 ай бұрын
@@PhegonDev the url ip_adresse/... will work everyWhere even from another network because the ip adresse is related to network .
@AwsmAnkit
@AwsmAnkit Жыл бұрын
hey dennis the frontend functionalities are not working after deploying react on s3 before that everything was fine
@PhegonDev
@PhegonDev Жыл бұрын
Okay!. What error is showing on the frontend after deployment? This will give a trace of what the prob is
@Chloe-si2hq
@Chloe-si2hq 8 ай бұрын
Hi Den - I have a springboot application with mySQL database. The front end is html forms + thymeleaf, will it be similar to do if I follow this tutorial? Does it ends at step 4 - "Get our EC2-spring-boot endpoint"? Thank you so much!
@PhegonDev
@PhegonDev 8 ай бұрын
Hi Chloe, Yes, It ends at step 4, get your EC2-spring-boot endpoint, that’s all. You don’t need to deploy your webpages(thymeleaf) separately as they are coupled together with your spring-boot and they can be rendered together on a server.
@Chloe-si2hq
@Chloe-si2hq 8 ай бұрын
@@PhegonDev Thank you so much for your answer!!
@PhegonDev
@PhegonDev 8 ай бұрын
@@Chloe-si2hq 👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽
@user-io6qq2ij3k
@user-io6qq2ij3k 3 ай бұрын
Can anyone help me with this Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
@JadeT2539
@JadeT2539 Жыл бұрын
Great tutorial. How do I deploy my full stack application to a ubuntu server instead of AWS?
@PhegonDev
@PhegonDev Жыл бұрын
I don't know what platform you are using. if you are to use your private server do the following. 1. Install the necessary dependencies required to run a jar file on your server. 2. Configure the server port you want to expose. 3. Do some security settings inorder to prevent unauthorised access to your server. 4. When you done, bundle your application put it there and run it.
@yuhanzhu2393
@yuhanzhu2393 Жыл бұрын
Thank you so much for recording such a great tutorial! But I'm having problems deploying my project (springboot + react ), my project is configured with a base path to store uploaded images on my local computer, I don't know how I should do it on aws, can you give me some advice?
@PhegonDev
@PhegonDev Жыл бұрын
That's not a prob at all. AWS s3 bucket is used for storing static files. What you'll do is, "create a folder in the s3 bucket upload the images there manually and then reference it from your react app(each image/file on the s3 have a reference url/path)". If the image upload is dynamic i.e it's done by the end users using your application, you can use this link on how to upload image to s3 from react app. If I have a little bit of time, I'll do a video on that. dev.to/shadid12/how-to-upload-images-to-s3-in-a-react-application-4lm
@yuhanzhu2393
@yuhanzhu2393 Жыл бұрын
@@PhegonDev OMG! Thank you so much! It's really help me.
@Prod3t
@Prod3t Жыл бұрын
do you have any advice on how to keep the spring boot app running on the cloud constantly without having to boot up the jar file in order for it to be online?
@PhegonDev
@PhegonDev Жыл бұрын
SURE. You need to use screen to Acheive this. Run the below command on your server. screen --version ⇒ Check if you have screen install already. If not sudo yum install screen ⇒ Past this command to install screen screen ⇒ to create a screen with a random name or screen -S “prefered_screen_name” ⇒ to create a named screen else a random numeric name will be given screen -ls ⇒to list all available screen screen -r 123 ⇒ where 123 is the name a particular screen Run you application java on the server. E.g java jar app.jar or node index.js ctr + a + d ⇒ to detach from the running application and make the application run on a background screen screen -ls ⇒ to see list of running screen. Attached means not running Detached means it running at the background. If status is detached you can exit your server and you app will still be running. screen -r 123 ⇒ to enter your screen again.
@Prod3t
@Prod3t Жыл бұрын
awesome thank you for getting back to me! I also found a different solution in the meantime. At around 33:00 after copying the jar file, you can run ‘nohup java -jar ~jar file~ > output.log &’ instead of just running ‘java -jar ~jar file~’. This should keep the server up and running even after closing out the terminal as well!
@Prod3t
@Prod3t Жыл бұрын
*Keyword*: nohup Before running the jar file!
@PhegonDev
@PhegonDev Жыл бұрын
@@Prod3t Great. Thanks for sharing 👍
@user-yd7vd6ob5r
@user-yd7vd6ob5r Жыл бұрын
Hello, can you please help : when I upload my frontend files to s3 and run it and then add name,email etc it is not getting reflected in the db as well as not getting shown on screen too, what can be the error
@PhegonDev
@PhegonDev Жыл бұрын
First, After uploading to s3 , are you able to access your web pages via the s3 url? and are the necessary pages able to show? if yes you good to go if no then you didn't upload files correctly. 2, Where is your database?. Is your database hosted on RDS or is still on your local machine? If it’s on RDS then be sure your can access it via the rds url and password. Also always console log your errors when trying to perform operations on your database by so doing we’ll be able to see the error and know what to do.
@ThisIsSKULL
@ThisIsSKULL Ай бұрын
Do know how to host domaine angular Spring boot my sql in internet
@PhegonDev
@PhegonDev Ай бұрын
Get a domain from a domain provider, e.g namecheap or porkbun.com. You can then decide to host your services there or if you already have them hosted elsewhere e.g on aws ,you can use the DNS management to on your provider setting to route your domain url to the url of where your services are hosted
@ThisIsSKULL
@ThisIsSKULL Ай бұрын
In thé end app running without your run thé app in your machine ?
@PhegonDev
@PhegonDev Күн бұрын
@@ThisIsSKULL app now in server. You don't need to run on the local machine anymore
@deepakp954
@deepakp954 3 ай бұрын
I was facing an issue: 405 method not allowed in login page when try to login. In spring I used spring security for login it will return json respone {role:ADMIN Or USER} based on role page will be redirected. Kindly help me.
@PhegonDev
@PhegonDev 3 ай бұрын
Okay. There are many reasons for these. We cannot tell now. I presume you are testing from your frontend after deployment. That information I am not aware. 1. To troubleshoot. After you deployed your backend to server first test your deployed app by using a client like Postman to manually send a login request to your server. This can help you isolate whether the issue is with your client-side code or with the server configuration. The error will determin if it is a server config or cient. Also login unto your server to see if the request is comming and to view the logs.
@vinayippakayala8331
@vinayippakayala8331 Жыл бұрын
thanks for the tutorial. it was the best. can you please give us the source code for the project
@PhegonDev
@PhegonDev Жыл бұрын
Sure. Here it is: github.com/dennisiluma/employee-management
@_IT_Jason
@_IT_Jason 9 ай бұрын
Awesome dude. I am currently developing a full stack app with react, spring boot,mongodb and firebase. There is an otp authentication from firebase which gotta be performed and when I perform that in my desktop it happens but when I open in my mobile and I try, I am not able to get otp. Do you have any idea about the reason behind this?
@PhegonDev
@PhegonDev 9 ай бұрын
If I get you correctly, when you say desktop you mean on your local machine? Because react is for web and react native can be used for building desktop apps. So I presume you mean on your local machine. If that's the case, check if other functionalities are working fine. If they are, then check your authenticator (firebase) if it requires some configurations. If other functionalities aren't working fine, then your frontend may have difficulty connection with your API, which you can easily resolve
@_IT_Jason
@_IT_Jason 9 ай бұрын
@@PhegonDev Thank you, the problem was with firebase authorised domains. While we test, we have to enter the domain name in authorised domain section which will be in authentication.
@PhegonDev
@PhegonDev 9 ай бұрын
@@_IT_Jason 👍👍 Nice. Good to hear it has been resolved
@madhan5407
@madhan5407 Жыл бұрын
Did you make same for kind of video for springboot and react application in google cloud
@PhegonDev
@PhegonDev 6 ай бұрын
I can do that as well
@madhan5407
@madhan5407 6 ай бұрын
@@PhegonDev thanks bro I have done but you will make video that should help people
@lecongthanh6738
@lecongthanh6738 Ай бұрын
Can i replace react js by vue js, is this similar ?
@PhegonDev
@PhegonDev Ай бұрын
yes
@tamerkarabacak2933
@tamerkarabacak2933 Жыл бұрын
Hi Dan! I deployed your App on Ec2 with AWS LoadBalancer and set a SSL Certificate, and set a domain name for it. But I got a CORS Error. How can I handle this?
@PhegonDev
@PhegonDev Жыл бұрын
OK. First of all, Console log the cors error to check the exact type. If it’s server related you can add this to your controller to allow from all origin.@RestController @CrossOrigin(origins = "*") public class Controller {} Remember after setting SSL Certificate on your server, your api url should now be https If you follow this it should work fine.
@PhegonDev
@PhegonDev Жыл бұрын
now you have ssl certificate You can configure to use https
@dishanshettigar7523
@dishanshettigar7523 4 ай бұрын
Its working fine on aws but its not saving any data in my db what to do
@PhegonDev
@PhegonDev 4 ай бұрын
First debug and check if you able to connect to the database
@Atharva.Adrakatti
@Atharva.Adrakatti Жыл бұрын
Hey Dennis, can you help me, Bro I created the database and deployed spring boot backend, tested successfully with postman and frontend, but when I deployed the frontend (react app), all UI pages where working fine but functionalities are not working, eg. login, sign up.
@PhegonDev
@PhegonDev Жыл бұрын
1. Are you running your application as a screen. Remember if you aren't running your server as a screen when you quit/exist from shell it'll stop the service. I presume you deployed your java app on EC2 2. After you deployed your application try to test all component endpoints (that's the endpoints now running on your aws server) before integrating with your frontend app. 3. If 1 and 2 are done correctly then ass a console log to your react app to show the error when login or the implementation in question fails. This will give a hint a to what the problem is. 4. Take note of your environment variables make sure they are exported to your remote server so it can be easily accessible there. Remember you no longer on localhost.
@xash6917
@xash6917 Жыл бұрын
hey did you find any solution for this im facing same
@Atharva.Adrakatti
@Atharva.Adrakatti Жыл бұрын
@@xash6917 Unfortunately, no.
@FullJcLLC
@FullJcLLC 2 күн бұрын
How ro resolve -- Error creating bean with name 'entityManagerFactory' defined in class path resource
@PhegonDev
@PhegonDev Күн бұрын
@@FullJcLLC what error is that?? From server?
@captainstark5496
@captainstark5496 3 ай бұрын
How do i deploy a react node.js mysql app on ec2, s3, and rds?
@PhegonDev
@PhegonDev 3 ай бұрын
For Ec2. 1, Install Node environment on your server. 2, Ship in your node project and run it. That's all. For s3, Build your reach and upload to s3 as already done on the tuts.
@captainstark5496
@captainstark5496 3 ай бұрын
​@@PhegonDevthank you I've deployed it!
@user-yf2ib9jv2s
@user-yf2ib9jv2s 10 ай бұрын
why I can't connect to project spring when i close cmd to build project spring boot on EC2 Thank you.
@PhegonDev
@PhegonDev 10 ай бұрын
If you close your cmd on ec2 your application will stop running because you are not detaching your cmd from the server. This can be solved by having screen sessions on your ec2 server. To do this; 1. Install a screen on your ec2 server using “sudo yum install screen” 2. Create a named screen using “screen -S your-screen-name” 3. Run your application on your screen using “java -jar your-applicationname.jar” 4. Detach from screen so your application can continue to run on background even when you exit by using “Ctr + a + a” This will solve your prob
@user-yf2ib9jv2s
@user-yf2ib9jv2s 10 ай бұрын
@@PhegonDev thanh you very much
@hou-chunlee5974
@hou-chunlee5974 Жыл бұрын
Hi Den, I follow your steps to create a database on AWS and try to connect to MySQL, but it failed. it shows that "Failed to Connect to MySQL at XXX...3306 with user admin" unable to connect to localhost. Would you mind helping me to solve the issue? Thank you!
@PhegonDev
@PhegonDev Жыл бұрын
From your error seems you still trying to connect to your local DB. Since you are now using your database hosted on aws, point the hostname to the url of the aws database[ not local host] also goes for the username and password.
@hou-chunlee5974
@hou-chunlee5974 Жыл бұрын
@@PhegonDev still failed...should I move on next step first? spring boot & react, or this part should complete first? Thank you!
@PhegonDev
@PhegonDev Жыл бұрын
@@hou-chunlee5974 Either way is fine. But you should be able to connect to your database on aws and test to be sure it's successfully conneected so you can avoid arror along the way. I'll suggest you deal with that first.
@hou-chunlee5974
@hou-chunlee5974 Жыл бұрын
@@PhegonDev thanks a lot! i will do the rest of the part first. i keep troubleshooting but still failed...
@lunamore4077
@lunamore4077 7 ай бұрын
I'm having issue that enable to connect rds even though I followed the video, I watched several videos about security groups but it didn't work for me, please help me, what can be the problem? I can connect to rds database through ec2 instance but in my local cmd i can't connect, either through workbench
@PhegonDev
@PhegonDev 7 ай бұрын
From your question, it seems your RDS only allows ip of your ec2 server. It doesn’t allow any other ips. WAY TO RESOLVE Check RDS Logs: Examine the Amazon RDS error logs for any issues or error messages that might provide clues about the problem. You can find these logs in the AWS Management Console. Check RDS Instance Availability: Ensure that your RDS instance is in the "available" state. If it's in a different state, it might not accept connections. Check Security Groups: Verify that your local IP address is whitelisted in the RDS security group. Update RDS Security Group: 1. Go to the AWS Management Console. 2. Navigate to the "Amazon RDS" service. 3. In the left sidebar, choose "Databases." 4. Select your RDS instance. 5. Scroll down to the "Security group rules" section and click on the associated security group. 6. In the security group settings, edit the inbound rules to allow traffic from the desired IP addresses or from anywhere (0.0.0.0/0 for all IPs). Add a new rule if necessary. WITH THESE, YOU GOOD TO GO
@lunamore4077
@lunamore4077 7 ай бұрын
@@PhegonDev it's accessible everywhere, I mean I changed security group, but still can't connect
@PhegonDev
@PhegonDev 7 ай бұрын
@@lunamore4077 If you cannot connect to you database how then is it accessible? I may not understand your exact question then. Check if your RDS instance if it is running and check your RDS logs. The logs will gives you all you need as to why it is not connecting(provided your credentials are correct) Again as i said it comes down to your security group configurations provided your login credentials are correct.
@lunamore4077
@lunamore4077 7 ай бұрын
@@PhegonDev sir, I made it!!!! thank you. But right now I'm having another issue with refreshing the database in part 37:56, I deployed the build file on s3, and I followed all the steps except refreshing and setting the limit (I did it using cmd because my workbench is encountering some error). The page appeared however it became just static, I couldn't add new users and existing tables didn't appear. I guess it's because smth wrong with my database. Do you have any idea how to solve it?
@PhegonDev
@PhegonDev 7 ай бұрын
@@lunamore4077 Good. I think you should follow these steps one at a time. 1. Set up your RDS database or platform you chose to use.. 2. Make sure you are able to connect to it first either using your cmd/shell as you said you did. 3. Connect your database to your backend application. 4. First Test on your local environment. 5. If it works fine, deploy each(backend & frontend) service to their respective platforms. 6. Test again after deploying. BONUS: As you are developing add loggings to your frontend and backend so you can easily view your errors for debugging sake. If you follow these steps correctly when you get stock on any step, you can easily know where the problem is. Doing everything at the same time will take extra time to know where exactly the prob is. In your current case, seems you able to access your database via the cmd which is good news. I still do not know why you are unable to use GUI e.g workbench. Ok, now you say existing tables didn’t appear? so you mean your table is not created in your database, so how can you add data to a table that doesn’t exist. Follow the above steps. If you are using the jpa @Entity database model on your spring boot project, your tables should auto persist and they'll be created once your backend application is run provided your app successfully makes a connection to your database. These are the little things you should check. I do not know the architecture you are using on your project. If you follow the listed steps above then you can easily resolve the issue
@cristimanolache5890
@cristimanolache5890 8 ай бұрын
Hello, bro :) I did like you, but I don't know why I have to pay 15 $ for RDS service. Do you have idea why? My AWS was is new
@PhegonDev
@PhegonDev 8 ай бұрын
1 Free tier expiration The free tier for new AWS accounts is valid for 12 months from the date your account was created. If your account is more than 12 months old, you will no longer be eligible for the free tier and will be charged for all RDS resources used. 2 Check your AWS Billing and Cost Management console: This will provide you with a detailed breakdown of your charges, including the specific resources used and the associated costs. 3 Maybe you are exceeding the Free Tier limits: The AWS Free Tier for RDS includes 750 hours per month of usage for certain instance types (db.t2.micro, db.t3.micro, and db.t4g.micro). If you are using a different instance type or exceeding the 750 hours of usage per month limit, you will be charged for the additional usage. You may also be exceeding the free tier limits for storage, backups, or other resources associated with your RDS instance. Storage: The free tier includes 20 GB of storage per month. If your database exceeds this limit, you will be charged for the additional storage used. 4 The following RDS instance types are free for 12 months for new AWS accounts: db.t2.micro db.t3.micro db.t4g.micro 5 Please check if your RDS instance falls within such a category( i.e db.t2.micro, db.t3.micro, db.t44.micro). If you choose a different instance type, like t2.micro or m5.micro or t3.micro , you will be charged for the full cost.
@AnasBensaid-xs6hq
@AnasBensaid-xs6hq Күн бұрын
i didnt find the file assit-manifest.json at 42:10
@PhegonDev
@PhegonDev Күн бұрын
@@AnasBensaid-xs6hq Yes, I'll update the course. The has changed
@AnasBensaid-xs6hq
@AnasBensaid-xs6hq Күн бұрын
@@PhegonDev can u send it to me please because i cant access upload the files any solution?
@lalitk7057
@lalitk7057 8 ай бұрын
how much this application will cost yearly?
@PhegonDev
@PhegonDev 8 ай бұрын
If your AWS account is new then it is free for a yr for micro instances but after a yr or if the account is more than a yr below are the pricing in U.S dollars. 1. EC2 (t2.micro instance in the US East (N. Virginia) ): Annual cost: $0.0116/hour * 24 hours/day * 365 days = approximately $101.62 per year. 2 RDS (db.t2.micro instance for MySQL in the US East (N. Virginia) ): Annual cost: $0.017/hour * 24 hours/day * 365 days = approximately $148.92 per year.
@lalitk7057
@lalitk7057 8 ай бұрын
Thanks for quick reply, Channel subscribed. I have react and springboot and react application, this is the simple application and in this application i am uploading images through springboot and planning to stored in S3 and path storing in DB and some other other information. Please suggest if other way. And Database side which db i should use so for all 3 three aws services.. it should be cost around 125-180$.. bcz I don't have that much budget
@lalitk7057
@lalitk7057 8 ай бұрын
Also I checked for vps hosting they are providing features for 1 year, linux, 3 core, 3gb ram, disk 90gb, bandwidth 3tb, ssl certificate, database space unlimited all this i am getting at 150$.. which one will be better aws cloud or vps hosting?
@PhegonDev
@PhegonDev 8 ай бұрын
@@lalitk7057 Overall, vps is way cheaper. I don't know the size of your project. If it's a medium or small size use vps but if it's a very large aplication use AWS. you can also migrate anytime as well. For a start, i'll suggest you use VPS then you can migrate to aws when the need arises or when you start making enough. AWS can be very expensive. it's suitable for big companies. Alternatively, instead of ec2 you can use lambda functions, by this, you'll only pay when users make calls to your service while for idle time, you pay nothing.
@terminator96
@terminator96 14 күн бұрын
Hi is it free for the first 12 months and comes under free tier?
@PhegonDev
@PhegonDev 14 күн бұрын
yes it is
@terminator96
@terminator96 13 күн бұрын
​@@PhegonDev sir nice teaching but the rds public access is charging, it's no longer free
@ahnafkhan2589
@ahnafkhan2589 5 ай бұрын
It's a React project, khhhh khhhh :)
@kshitijwardhanahirwar6043
@kshitijwardhanahirwar6043 3 ай бұрын
Fyi, RDS Mysql is not free.
@PhegonDev
@PhegonDev 3 ай бұрын
nah, It's not. But you are allowed to test for 1 yr with some limitations if your account is new
@virusehwag9562
@virusehwag9562 Жыл бұрын
Very confused Make sure how to teach so that people can understand not only you. Make clear steps before teaching. Looks like you are also confused about the teaching !!
@PhegonDev
@PhegonDev Жыл бұрын
Sure Noted!
@davidosimiri7344
@davidosimiri7344 Жыл бұрын
come and teach us ...u try
@virusehwag9562
@virusehwag9562 Жыл бұрын
@@davidosimiri7344 if you want me to teach you then you can visit New Delhi India!!
@davidosimiri7344
@davidosimiri7344 Жыл бұрын
@@virusehwag9562 am ok with this lesson...
@ravindukavishka8912
@ravindukavishka8912 9 ай бұрын
Great tutorial. Very detailed and helpful for a beginner like myself. Thank you :)
@PhegonDev
@PhegonDev 9 ай бұрын
I'm happy tw's helpful. 👍
🚀 Deploy Spring boot application to AWS Cloud 🚀
31:32
Bouali Ali
Рет қаралды 30 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 32 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 23 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 41 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 15 МЛН
Full Stack Development with Java Spring Boot, React, and MongoDB - Full Course
2:40:48
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 32 МЛН