Hello!So I’m new to web development entirely and I have decided to make a web-app. I’ve taken the approach a lot of beginner devs take which is: I have an idea and I’m gonna learn just what I need to make it work. However, I’ve found learning about Nodejs super interesting so I was hoping you guys could help clear up some stuff!—————————I’m a little confused about how Node fits into the web-dev stack.So I have my Node app that handles cool stuff like accessing my MongoDB and the Express server. Then I have my static HTML and JS files that are sent by my Node app. I can put this whole project into a hosting service (e.g. Glitch) and it just runs! But I’m confused about what part is doing what.From my understanding there’s a front end and back end. Node is handling the backend, routing, data requests, etc, and my JS and HTML is the front end, or what is displayed in browser. I’ve never hosted anything without Node, so if I were to just make my HTML/JS, could that be hosted by a service on its own? Also, I’ve gotten the notion I can separate my front and back ends (as of now they’re both in the same project directory and communicate via RESTful API calls), how would I go about doing that if Nodejs creates the server and sends my HTML to the browser?Also, is it possible to host my Node app continuously? I know Glitch shuts it down after 12 hours; is this a ubiquitous thing? Part of my idea involves sending timed SMS notifications (so far I’m using Twilio) AFTER a user has stopped using the app (closed the browser), will I need some separate software hosting to achieve this?Thanks!
Submitted January 18, 2019 at 06:00AM by ThatsSortaCool
No comments:
Post a Comment