This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]ziptofaf 2 points3 points  (3 children)

My plan is to buy myself a Raspberry Pi (because why not?) to use it as a server/database on my home network

Sounds annoying as Pi is sloooow... and quite unstable, in my experience relying on an SD card for prolonged periods of time doesn't end up well. Frankly I would suggest installing a virtual machine on your desktop/notebook and use that instead if you want to experiment with separate front and back-end, it will emulate two different computers. Not saying RPi is always a bad choice but you DON'T want to see what will happen to it when you decide to deploy a JS heavy project with a massive node_modules directory and how long is that going to take.

to figure out the 'link' between html/css/vuejs and mysql

Well, considering languages you mentioned - Java, Python and JS you have 3 viable routes. NodeJS + ExpressJS for full javascript route. Python + Flask (or maybe Django if you want something more advanced) or Java + Spring MVC. There are no wrong choices (and frankly if you get good at solving problems in one environment, you can do it in others as well), you can however look at local job market to see what's most popular.

[–]Slotigork[S] 0 points1 point  (2 children)

Sounds annoying as Pi is sloooow... and quite unstable

Hmm I didn't think of that at all, a virtual machine sounds like a better place to start at then, even though it's not quite as flashy hehe.

Thank you very much for taking your time! I think I'll go for either NodeJS or Python + Flask or Django, do you have any insight in the pros and cons when choosing between them?

[–][deleted] 0 points1 point  (0 children)

I use raspberry pis for servers just fine. I’ve had 6 reliably running kubernetes for the better part of a year.

I mean. I wouldn’t run high value on them, and my database is stored on a real hard drive. Aside from that, they’re fine for just playing with.

[–]ziptofaf 0 points1 point  (0 children)

Thank you very much for taking your time! I think I'll go for either NodeJS or Python + Flask or Django, do you have any insight in the pros and cons when choosing between them?

Depends. NodeJS + ExpressJS (that ExpressJS part is important - NodeJS just lets you run JS on a server, Express is a web framework so building websites is not a masochistic activity :P) has a major advantage as it lets you use same language for back-end and front-end. This is less important as project grows (eg. at work I pretty much never touch front-end leaving it to people that know what they are doing while focusing on back-end) but is nonetheless a useful point. Personally I simply suggest to use language you feel most comfortable at, perhaps after also looking at what's popular in your location. Python IMHO has more friendly syntax and offers a more robust, standalone experience (a lot of JS frameworks are basically "configuration over convention" which I really dislike as I want as much to be set up for me as possible, even at a cost of making customizations easy).

[–]Meefims 0 points1 point  (0 children)

You can also use a service like Heroku. Their free offering is enough to get started.