Web-minecraft is minecraft client written in CoffeeScript. From web browser this client connects to node.js server and then to real minecraft server, so you can play minecraft in the browser.
IMPORTANT: To run this game you need to start real minecraft server (by default it is 1.16.3 offline mode java edition on ip localhost:25565).
By default node.js server is served at http://localhost:8080.
#Clone repo
git clone https://github.com/michaljaz/web-minecraft
cd web-minecraft
#Install node.js libraries
npm install
NOTE: Run it if you are developer and want to change code and view realtime changes.
#Start node server with webpack middleware (That will start webserver at http://localhost:8080)
npm run dev
NOTE: Run it if you want to only build and serve production app.
#Cleaning dist folder (old game bundles)
npm run clean
#Building app bundle
npm run build
#Start node server and serve bundle files (That will start webserver ad http://localhost:8080)
npm start


