XAMPP with Node js

0

I need help, I have a project with socket I am doing the socket with node js, but the node creates a server I would like to use the server to xampp so that the requests from the client reach the socket. How could I configure this so that I exit the port of my modem 8080. I appreciate your help.

    
asked by Mario Davila 24.08.2017 в 01:27
source

1 answer

0

XAMPP and Node.js are different things, Xampp is just a program that makes it easier for you to run your server in Apache, but you could do it in the console (MacOS & linux) with username$ apachectl start and to do it with Nodejs it is ../Proyecto/ $node server.js . This means that if you did a REST API with node you can not run it with XAMPP, you will have to configure the ports and the ip in the node file, if you want to test it local you can use localhost and the port you want, if you want a web server you can use nginx

    
answered by 24.08.2017 в 04:55