Hello
I am a fullstack developer and a complete newbie in laravel.
I have developed many apps with js and express, but i have opted to use laravel due to its ability to be hosted on shared hosting services with cPanel. That is to my understanding at least.
So, my question is can i really develop fullstack laravel web apps/ apis and host them on shared hosting platforms like hostinger and similar sites? if yes, are there any downsides except the normal shared hosting disadvantages? also, what are some important packages/features/patterns i need to learn right from the start?
#Just started laravel
34 messages · Page 1 of 1 (latest)
but i have opted to use laravel due to its ability to be hosted on shared hosting services with cPanel
While kinda true, it's also a pain in the bum. Laravel requires quite a specific set-up, as you'd need to point a document_root to the public folder of the Laravel app, not just serving all PHP files. Shared hosts also often come with lots of limitations, preventing the use of scheduling, queues, Reverb (websockets) and all kinds of other goodies Laravel offers.
you can also host node and express on those, but it's a burden, i would expect the same with laravel
Huh, so there's no massive advantage laravel has over js frameworks? i thought i would pick it since most of my clients have really light work and thought about it being a more economic solution, since most VPSes start at $5ish per month while not having a database at all.
no advantage ON THIS. but basically every robust web framework will have this "limitation"
it gets me wondering which clients you're taking that can't afford $5, but if you're looking for the cheapest backend take a look at pocketbase
pair it with astro, i cant think of most affordable stack than that
it's not a matter of being able to afford it, but the cheaper the more attractive it sounds. Also, the vps isn't expensive, it's the $30/month databases that are ridiculous, but i guess those types are for massive projects.
$30/month database?
yes, for managed database. you can also host it on vps
THIS you can also host it on vps
i always wondered if i should do that
can i just install a mysql db and web app on the same vps with no problems?
yes
i searched long and deep about that, but everyone says to not do it!?
i've been using only railway nowadays, it's a good and affordable platform, for low traffic app + database ends up being less than $5/month
gonna check it now
please tell me i can use express and mysqldb on the same lightsail instance and i am happy 😄
i don't know if you can in the same in lightsail, but you sure can in two, so $10
does it have to be 2? why not just one more powerful instance?
i feel like this should be fine for both?
i don't know how lightsail works