I have an application which has a laravel backend and VUE js front end. I have just very new to digital ocean. would be great if you guys can help me out with hosting this application.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
There are a couple of ways to do that:
What I could suggest is following the steps here on how to deploy Laravel on DigitalOcean:
Then create a separate Nginx server block and add your Vue project there.
This option is quite similar, but you need to deploy a second Droplet with Nginx installed and upload your 2 components on the two separate Droplets.
In both cases, it is better if you have a domain name so that you could run your Laravel on a separate subdomain name like api.yoursite.com.
Another option is to use the new DigitalOcean App platform so that you will not have to do any server configuration. Here is a quick demo on how to do that:
https://www.youtube.com/watch?v=1T3d7P_V2t4
The video should help you as it shows how to deploy Laravel with a separate frontend service. In the case of the video, it is a React app but the process should be the same for Vue.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.