I guess you want to add server Node.js logic, sometimes in the future. Then, explore Express http://expressjs.com/
and put all your current files in the public declared directory Read http://expressjs.com/guide.html Short path npm install express -g express yourapp cd yourapp (copy all your current files to yourapp/public directory) node app and browse one of your assets in the browser. Maybe you need to remove some app.get(...) in the app.js, that is mapping the home page to a controller/action and view of Express Disclaimer: there are other simpler solutions (static web sites), but I mentioned at the start of this email, I presume you need server logic Alternatives? Angel "Java" Lopez @ajlopez On Thu, Jan 23, 2014 at 2:08 PM, Nick Dugger <nick.dugg...@gmail.com> wrote: > Hey there, I've recently started a project, and I need a server for it. I > don;t wan to simply drag it into my xampp folder, but rather create it's > own server for Node (also so I can actually USE Node in the project). > > My project currently looks like this: > > Project Folder > |---- HTML File (this is what you load in browser) > |---- JS Folder > | |---- JS File (this is where my JS is, obviously) > |---- CSS Folder > |---- CSS File > > Basically, my HTML file is an HTML5 canvas in which the JS file > manipulates. I've seen many tutorials on starting up a simple HTTP server > with Node, but it makes it seem that you must do everything within the Node > terminal. I'm wondering how I might integrate a Node server with my > existing architecture. > > At my current point of progress, I have no issue rewriting my JS if need > be, but I honestly have no idea where to start to even get Node functioning > within my project. > > Should I just halt the project and focus solely on Node until I at least > have a working knowledge of it? Where are the best tutorials for idiots > like myself? > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nodejs+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.