io-game-v2

0.1.5 • Public • Published

Setup

  1. Clone https://github.com/valkyrienyanko/io-game-v2.git.
  2. Download and install LTS Node.js.
  3. 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 from nodemon to node.
  4. Start server with start-server.cmd.
  5. 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.

Readme

Keywords

Package Sidebar

Install

npm i io-game-v2

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

1.29 MB

Total Files

42

Last publish

Collaborators

  • valkyrienyanko