Skip to content

A bootstrap project for creating games with Phaser + Socket.io + Parcel.

Notifications You must be signed in to change notification settings

tennisfar/phaser-socket.io-parcel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phaser + Socket.io + Parcel

A bootstrap project for creating games with Phaser + Socket.io + Parcel.

During development:

Open two terminals. For the server, run:

npm run dev-server

The server runs Express on port 4001, and will reload on changes to server.js.

For the client, run:

npm run dev-client

The client runs Parcel on port 1337, with hot-reload, and will connect Socket.io to port 4001.

To run the game, open your browser and enter http://localhost:1337 into the address bar.

Build for deployment:

Run:

npm start

This will build the client and serve it with Express on port 1337.

To run the game, open your browser and enter http://localhost:1337 into the address bar.

About

A bootstrap project for creating games with Phaser + Socket.io + Parcel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published