This is a heavily optimized and improved upon version of https://github.com/nepphhh/arrasio.
As such, it's very different from the source code.
The client and server are all split up into many different files.
Each file's name should give you a description of what it does.
- In the server's
config.json
, find thehost
property and set it to the proper host (eg.localhost
,arras.io
,your-project.herokuapp.com
,your-thing.glitch.me
). - Make sure the
port
property is correct in theconfig.json
file.
Please note that if you're using a hosting solution that sets the port for you, it will be the value ofprocess.env.PORT
. Inglobal.js
, this is taken care of for you. npm start
ornode server/index.js
- Make sure you have the
standaloneClient
folder. - In the
index.js
file of that folder, make sure theip
property on line9
is set to the complete host and port of the server you want the client to connect to. (eg127.0.0.1:3000
,234.23.123.123:3001
,your-project.herokapp.com
) npm run host
- Make sure the steps above are complete
- In the server's
config.json
, find thehost
property and set it to the proper host (eg.localhost
,arras.io
,your-project.herokuapp.com
,your-thing.glitch.me
). - Make sure the
port
property is correct in theconfig.json
file.
Please note that if you're using a hosting solution that sets the port for you, it will be the value ofprocess.env.PORT
. Inglobal.js
, this is taken care of for you. - Make sure the
servesStatic
property is set tofalse
in theconfig.json
file. npm start
ornode server/index.js