2019-10-26 16:52:25 +02:00
|
|
|
mineseeker
|
|
|
|
|
=========
|
|
|
|
|
|
|
|
|
|
A Symfony project created on September 22, 2016, 13:56 pm.
|
|
|
|
|
|
|
|
|
|
PROJECT VERSION 1.1.0-20191026
|
|
|
|
|
|
2016-10-01 21:49:15 +02:00
|
|
|
This is a Symfony 3 project w/ React JS in standalone mode and w/ WebSocket.
|
2016-09-22 13:56:57 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
#### Must installed modules w/ npm are in package.json + to global:
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
$ npm install webpack -g
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
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!!
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
__(!) Tutorial: https://egghead.io/lessons/react-introduction-to-properties__
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
#### Backend WebSocket server start as daemon - GeniusesOfSymfony/WebSocketBundle
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
$ nohup bin/console gos:websocket:server &
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
#### React JS WebPack watch generator w/ babel presets: es2015, react
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
$ webpack -p --config=webpack-prod.config.js
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
PROD
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
$ webpack --progress --colors --watch -d
|
2016-11-30 20:48:17 +01:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
DEV
|
2016-11-30 20:48:17 +01:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
-d --> Debugger; If you write this line somewhere: debugger;
|
|
|
|
|
The browser will stop the code here!!!
|
2016-10-25 11:19:50 +02:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
#### Connect to Prod
|
2016-11-30 20:48:17 +01:00
|
|
|
|
2019-10-26 17:40:10 +02:00
|
|
|
ssh xxsvci@laszlolang.com -i ~/.ssh/id_rsa_laszlolang
|