help beginner with basic app

53 views
Skip to first unread message

Anton Inocentiu

unread,
Sep 24, 2017, 6:15:49 PM9/24/17
to nodejs
hello everyone
im trying for a while to write my first nodejs app

my brain just cant understand
i tried tutorials, also got some books
beginning nodejs, the node beginner book

cant get pass hello world, i just cant put it together,

i need something easy, prefferably 1 file, less modules, NO jquery

a html with 2 buttons, that executes 2 functions on the server and sends results or message back to the client page to display in a div (executed function 1 or 2)

will run it from a localhost,basically just a gui for other stuff
i assume xhr would be enough for localhost

last stuff i tried was this http://siteolytics.com/node-js-a-simple-tutorial-with-example/
after installing modules it said "Error: Route.post() requires callback functions but got a [object Object]"
these modules change too fast, thats why i want something basic whithout too much modules to rely on

is there a node forum besides ?

please help
thank you

Zlatko

unread,
Sep 25, 2017, 12:34:08 PM9/25/17
to nodejs
Hello Anton,

Did you try with nodeschool.io tutorials? Those are really great to get you started. Also, they start from the basics and are relatively up-to-date. Also, they teach you the core principles so even when modules change later, you can still figure out what's going on.
But that's very general stuff. If you want to do a simple express app, just go to Express.js Getting started pages: http://expressjs.com/en/starter/hello-world.html
And one more thing - learn Node (backend) and HTML (frontend) separately. First, learn how to make a simple server that does these two functions. When you do that, you have a "backend". Then go work on the "frontend", HTML pages or app. It'll make learning this stuff much easier.
Reply all
Reply to author
Forward
0 new messages