io-game-v2
v0.1.5
Published
Networking with sockets.
Downloads
3
Readme
Setup
- Clone
https://github.com/valkyrienyanko/io-game-v2.git
. - Download and install
LTS
Node.js. - Run
install-dependencies.cmd
. You will need express and socket.io, electron and nodemon are optional. If you choose not to use nodemon you will have to modify all the scripts to change fromnodemon
tonode
. - Start server with
start-server.cmd
. - Create a client by opening up
https://localhost:7777/
in your browser.
If you're using nodemon, the server will automatically restart whenever code has been changed. If you ever need to restart the server manually you can do so with the rs
command.
Debugging
Server
The server will spit out errors directly to the server console. If you're using nodemon, it will stop and try again when changes are made to any of the files.
Browser
Viewing the developer console depends on which browser you're using. Here are some hotkeys to take note of.
| Chrome | Firefox | Opera |
| ---------------------- | --------------------- | ---------------------- |
| CTRL
+ SHIFT
+ J
| CTRL
+ SHIFT
+ J
| CTRL
+ SHIFT
+ I
|
Electron
An external debugger will automatically be attached if you run the app through run-app.cmd
.
Resources
APIs
Contributing
Talk to me on discord valk#3277.