How to develop a simple webpage for a CLI Node.js script [closed] - node.js

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a Node.js script running locally through command line (I haven't developed it so not very familiar with the code) which takes an email address as a parameter and looks up some data and spits out results in a command line table.
I wanted to make a "front-end" for this, like a simple local Webpage where I could punch in an email address and see the response right on the browser itself.
I am not very familiar where to get started without complicating this into a bigger problem than it is. Any guidance would be very helpful here. I haven't really done any web development using Node or JS before but I am familiar with basic web development (and willing to learn) new ways of doing things.
If I can provide any additional information please let me know.
Thank you!

The most prominent framework for developing node apps is express.js. You can't go wrong if you invest some effort into learning express. It will help you with routing and templates, and can generate a skeleton application for you. Read through the guide, and learn:
http://expressjs.com/guide.html
Also you may study the answer to the most popular node question on this site:
How do I get started with Node.js

Related

which is the most relevant roadmap for web frontend developer? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last month.
Improve this question
I try to improve my career but at this moment I think how would I start again?
What is your opinion? What is the best way to start?
i wish to know the most relevant roadmaps in frontend developer
First of all, you must learn HTML and CSS. After doing that start learning Javascript. Then you can learn javascript frameworks like React, a free and open-source front-end JavaScript library for building user interfaces based on UI components, or Angular.
In beginning, I would suggest React as it has a large developer community and is also a bit easy to understand.
You will also need to learn about making API calls, so learn about rest APIs and postman.
Also, learn how to format the JSON you will get from the backend.
After that, you can work on learning Redux(state management tool) and typescript(a superset of JavaScript ).
TO SUM UP THE ROADMAP :
HTML
CSS
REACT/ANGULAR
REDUX
API
TYPESCRIPT (OPTIONAL)

Can NodeJs be used on the web just like php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Guys i'm new in Nodejs,
please can it be used on the web like php?
First you decide what type of situation you have.
If you want to make shopping site, social network etc which use large data processing , then you go for node.js (for example linkedin is made in node.js ).
But if your website does not require much data processing in server side you can go for php.
Nodejs is little difficult to use but once you use it perfectly your website will run smooth.
Both are good languages.
Yes you can easily use nodejs as a server side language.
Nodejs is faster than php. You can use nodejs to speedup your loading speed of your website.
Because nodejs heavily use callbacks.

Whether to use MEAN.js or not? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What advantages we will get if we use MEAN.js framework over our homegrown MEAN packaging? we are not going to use angular.js (A part of MEAN.js)
Will we face any API versioning issues? Will there be any issues related versioning of packages in MEAN?
Is it really complex to use MEAN.js as compared to creating own structure to use manage APIs, etc.
I was trying to create custom MEAN stack myself, but it was only a matter of time when i realized, that MEAN is not only MongoDB, Express, Angular and Node. Just look at node modules to see how many additional things there are. Authorization(passport.js), connectors, parsers, test libraries, mailer, promieses, etc. When i was starting I didn't find these tools useful, but now I would add most of them to my custom MEAN. Thats why I use MEAN.js stack
We can't possibly know whether your configuration will work better than MEAN.js because we know neither your needs, nor your configuration. MEAN.js provides an API out-of-the-box and supports scaffolding (via yeoman) which generates files and code with a single command. I am not a huge framework enthusiast in general, but I have to admit that development became much more easier and enjoyable since we switched to MEAN.js (ditching our own custom MEAN stack).

M.E.A.N. mongoose and passport js? Basic guide needed [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Installed M.E.A.N framework on ubuntu 14.04
I have basic knowledge of Angular, mongoDB, node js but not with express
localhost:3000/ is working fine , landing page appears
I want to use mongoose and passport.js for user authentication?
Means where do we authenticate user? where are the database?
I have read many documentation but didn't get the initial stage where to head start as everything.
on mongoose documentation it was written to run below URL
mongodb://localhost/todos
but it doesn't work either.
Please guide me a little bit
You should follow -
https://scotch.io/tutorials/easy-node-authentication-setup-and-local
Tutorial for the above. I learned about all of the above as you mentioned from the tutorial.
Hope, this will help you.
Thanks
Instead of trying to learn from scratch, look at an implementation using all of those components mongo,node,express and passport. One of the best examples that I have found is the MEAN.IO repo that has full on auth with third party providers and local strategies.
If you are bit more advance then I would recommend you to check out my LearnMEAN tutorial.

How to Learn ExpressJS? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Is it possible to learn ExpressJS without much prior knowledge of Node.js?
Is this a good approach? If yes, what resources can you recommend that I use to learn Express?
Yes of course, it's possible to learn expressJS without NodeJS. Even if it's always better to know both.
The best way to learn expressJS is the official guide :
http://expressjs.com
It is not a good idea to try to use Express before learning node.js basics. You really do need to understand the fundamentals of async because the node.js library modules are all async.
However, it shouldn't require more than a couple of days of studying some of the node.js tutorials and exploring modules like Promises and Steps.
Simple answer is yes, but it's not recommended, you can learn more about Express on their site.
Why is this not a good idea, well simply becuase nodeJS has programming standards, where you have to learn about the Disk I/O and cycle counts before you dive into coding, the reason for this is Node is designed to be Non-Blocking meaning that every action you perform in node that requires the disk to spin up or network access requires it to be compliant with its event structure.
For example:
require('http').createServer(function(Request, Response){
/*
* If your code here is blocking every request that comes in to the server get's bottlenecked.
*/
});
Because if this reason alone i would start on the video presentations around the net to start getting an understanding, and then hit the Node API before you attempt to create anything in node.
Why do you not wish to learn Node before you attempt to learn a module for node?
What I also advise is for you to get a IRC Chat and visit the #node.js channel as the guys over there will help you immensely.

Resources