- This solution works with
express
in combination withsocket.io
. To run this app you will need node >= 10.x.x
- To start the main API on development mode from root solution folder.
- The
API
, will run inlocalhost
,port:3000
. - The protocol for API is
http
.
$ npm start
- To run unit tests from root folder:
$ npm test
$ npm run start:echo
- This will start up the
client
and theAPI
. - Open the client on browser:
http://localhost:1234/
- Type and send message, in browser console must appear:
/random-channel#79PVp22K8iHx6tTCAAAA
This identifies the socket.io namespace and socket id{channel: "random-channel", user: "pepe", text: "your text..."}
The message that we sent to server, and it's sending back to us. Just an echo.
To test API
with client
, we need to open two separate node processes. First we have to run the server, from root folder:
$ npm start
-
The
API
, will run inlocalhost
,port:3000
. -
Once server is up and running, we can launch client, from
e2e
folder run
$ npm run start:client
- The
client
, will run inlocalhost
,port:1234
We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.
Basefactor, consultancy by Lemoncode provides consultancy and coaching services.
Lemoncode provides training services.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend