Application starter template, for implementing isomorphic widgets, using RxJS and React
Application starter template, for implementing isomorphic widgets(same code for both server and client side), using RxJS and React
It is build on top of following great projects:
For now, application includes following:
npm run dev
http://localhost:4000/
(php server should be started at port 4000 to make this working, see instructions below)To customize host and ports used by application - use environment variables:
DEV_SERVER_PORT
- port used by dev server, 2992
by defaultDEV_SERVER_HOST
- host where dev server is running, localhost
by defaultSame thing about app itself:
APP_SERVER_HOST
- host where application is running, localhost
by default (address where app is accessible)APP_SERVER_PORT
- port user by application, 8080
by defaultif you have different application host and port different than above - be sure to specify them in environment
Also you can enable some other things for dev-server by environment variables
HOT=1
to enable hot reload for client sideFor setting those variables - you can create .env
file at project root.
npm run test
npm run lint
npm i
npm run build
node ./build/server/server.js
example is in public folder, to try it:
composer install
install dependencies, using composerphp -S 127.0.0.1:4000