Private
Public Access
1
0

websocket basic setup FE & BE && working basic game w/ react && webpack & babel config

This commit is contained in:
2016-10-01 21:49:15 +02:00
parent cc411a4a73
commit 8583be9d2a
17 changed files with 470 additions and 21 deletions

View File

@@ -1,4 +1,22 @@
mine
====
This is a Symfony 3 project w/ React JS in standalone mode and w/ WebSocket.
A Symfony project created on September 21, 2016, 10:11 am.
0.) Must installed modules w/ npm are in package.json + to global:
$ npm install webpack -g
You will need a
.babelrc file w/ the presets
webpack.config.js - https://webpack.github.io/docs/webpack-for-browserify-users.html
same as dir where the package.json!!
(!) Tutorial: https://egghead.io/lessons/react-introduction-to-properties
1.) Backend WebSocket server start as daemon - GeniusesOfSymfony/WebSocketBundle
$ nohup bin/console gos:websocket:server &
2.) React JS WebPack watch generator w/ babel presets: es2015
$ webpack --progress --colors --watch