backend - Where to put node.js code in cPanel -
i entirely new backend development might ridiculously easy , straightforward question, i'm not sure. trying learn node.js backend development, , of tutorials have seen far show how node can used run javascript terminal , create server on local host. while neat thing do, stuck there , having difficulty understanding put node.js code on cpanel , how use along rest of html/css/js code; examples have seen isolated , don't have interaction these other files.
again, don't have backend experience, not helpful explain concept relative server-side language python, ruby, or php, have no idea put of code of stuff either or how fits bigger picture. if answer maybe touch on how integrate python or php , general patterns backend development---the easy stuff assumes no 1 explains---it appreciated.
it doesn't matter put it. want keep in folder of username using it. created folder called app/ in users folder , put crap in there. set listen on port approved host.
you can use .htaccess file in public_html folder redirect correct port number.
your node.js handle routing. go css/html files have set in node.js code.
Comments
Post a Comment