This foundation uses typescript and implements server side rendering with react router.
webpack:client
: Builds the client js bundle and stays watching files.webpack:server
: Builds the server js bundle and stays watching files.webpack:start
: Runs the built server_bundle.js, starting a web server.dev
: Runs script 1, 2, and 3 in parallel. This means that the server and client bundle get built and the the server gets ran and watched.build
: Builds server and client bundle in the build/ folder, useful for deployment.
npm install
npm run webpack:dev
- Open your browser in the local address displayed in the console.
You may choose wich port you want the server to run on, for this, you can change line 11 of the Dockerfile
$ docker build -t image .
$ docker run -p 8087/8087 image
You can now go to localhost:8087 and see the app.