How i can add a node.js file to a html repl???
Duvangamer3845 (132)

in this moment im working on a website about videogames,but i wanna create a server to the community with node.js but i can't,every try to add a file is only javascript not node.js,can help me some person,i really need this,or i can make a server with a file of only js? repl: https://repl.it/@Duvangamer3845/DimgrayVerifiableBlog#index.js

You are viewing a single comment. View All
Answered by PattanAhmed (1412) [earned 5 cycles]
View Answer
ironblockhd (427)

You need to create a new nodeJS repl and then copy the html files there, you saddly can't add nodeJS files to existing html repls

k9chelsea2 (771)

I don't know, I added a nodejs file to my html repl but I'm not sure if taht worked

Duvangamer3845 (132)

@ironblockhd dont work me,the window has not been created in a repl of node.js,the output of the html repl dont see,i wanna create a server with that things,to make a conmunity forum in my page whitout edit the code

ironblockhd (427)

you need to put nodejs code to make a simple server, heres how that could look like: https://repl.it/@ironblockhd/VelvetyAdolescentMedian

k9chelsea2 (771)



thats in a html repl, but not running any code because I haven't written any lol

k9chelsea2 (771)

ok im prolly wrong lol

Duvangamer3845 (132)

@ironblockhd hey? and now what,now i can run mi html pae in the node.js page,but now what,this how can help me to make my server?? this is the output: https://repl.it/@Duvangamer3845/DimgrayVerifiableBlog#index.js that is,in the social page,i wanna make a post box to send something,then i want every user can see that post in that page,like a facebook xd