Hi all,
I'm a programmer with no web dev experience. I know how networks work (IPs and ports and protocols and all that) and I have some security knowledge (so I'd know it's important to do string validation and all that).
I also know how to set up Linux servers, secure them, serve them over TLS with CertBot, and I've also run web apps such as Jupyter or Gitlab from those servers.
I have some simple projects I want to do, but not knowing web-dev is getting in the way of that. I know how to serve very basic HTML+CSS websites, but that's it.
So, I want to make a very simple four-function calculator. (Two text boxes, four buttons for four operations, sent to the server, which returns the result of the operation.) I know this can be done entirely in client-side JavaScript, but I want to learn to do this server side.
I understand there are a lot of Javascript frameworks, like React or Node.JS. I don't really know how to choose one or what to use though.
So, I'm wondering, if you (the experienced web dev) were to make this project, what tools/frameworks/etc. would you use? Should I use JavaScript on the server-side as well, or is it fine to use a language of my choice (i.e. Python)?
I'd imagine the stack to look like this:
[ Ubuntu/Linux server | Python backend, taking in and validating strings, and serving dynamic webpages | Static webpage served on something (Apache??) ]
If you have links or suggestions I'm open to them!! I won't be needing to connect this to a database or anything, so there's no SQL server attached here.
twovests OP wrote
For reference, this is a Jan 2019 Ycombinator post describing a go-to stack: https://news.ycombinator.com/item?id=18829557
TLDR:
json-server
innpm
for a quick REST API(I understand REST is sort of a language describing APIs that can be imported into various web frameworks?)
This sounds like what I have in mind, but I know a lot of people have strong opinions and I like to hear them.