devilhunter devilhunter - 9 months ago 46
Node.js Question

Should I use use express or switch to javascript and html?

I have been building this web application that takes user input and after doing so it modifies files on the server side. The core logic of this is build in node.js and works through command line, but most of the site is build using just javascript and HTML.

I've read that using express is easier in conjunction with node to modify server-side files. Is this enough reason to switch or should I revamp my code in regular javascript?

PD: I'm new to this and this is my first web application

Answer Source

Express is JavaScript. It is a library; a codebase from which you can do more and write less. I recommend it, especially if it is your first web app.

It is very important, as a general rule, that you don't only learn express. Just because you can use express and nothing else doesn't mean that you should. Challenge yourself to learn the inner workings of how the framework does things, and how web apps, as well as regular apps, work.

Having this knowledge will make everything easier in the long run, but that isn't to say that you should reinvent the wheel.

Overall, use Express, but make sure you know how you could do it on your own.