Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

index.js is not a default you need to include in your package. you better go read and experiment before making bullshit. JavaScript is a language with multiple platforms and NodeJS is just one of them.


sort by: page size:

that's some beautiful javascript code and great project structure here. got me thinking about a few things: 1. is the "index.js" in subfolders a nodejs thing? 2. does that turn subfolders into modules? 3. can you write and run that kind of javascript without nodejs?

I assume it'd be better to execute index.js directly with node

Can we please call it NodeJS and stop calling it Node.js? It's not a .js file, and it's not written in JavaScript.

Hence the “enough” modifier. NodeJS isnt a browser framework, do your research.

I've been wanting to get into nodejs but haven't touched javascript in years and have been put off by the hassle of having to go through it again tbh.

compile to Jscript instead and you won't need node.js.

this sucks and I hate it you should use Node.js

node.js is written in JavaScript.

Isn't Liam's project proof that you don't need any complicated JS tooling?

A simple `node index.js` can go really far.


You actually don't need any of that stuff, you can just write .js files and run them in node. The node.js standard library is quite extensive.

what did you use for Javascript??...nodejs??

Nodejs is only needed in the development phase.

Little bit later to reply.

Unfortunately that doesn't mean much.

Since nodejs is a server side language and can handle that package too. And it's not "solely" for js/spa's.


js & nodejs

Very cool except it has no NodeJS example. By the way, JavaScript does not suck. It has module and package systems, check out NPM, and OneJS for using all NodeJS utilities in client-side; http://github.com/azer/onejs

Aha, I got it. So, front-end developers may event don't know about nodejs ?

It sounds like nodejs is not what you want then.

Node isn't a JavaScript framework so much as a platform to run JavaScript on. Express is maybe more analogous to Swifton here.
next

Legal | privacy