Serve & Build

Documentation of development server and build process

Installation

MatX React uses React Framework for development serve and build process

  • 1. Make sure if NodeJs and yarn is installed on your computer.
  • 2. Open terminal and navigate to root /matx-react directory and run yarn to install dependencies.

Development server

Run yarn start to start local development server. You will be automatically redirected to your default browser's page which contains you served site. Open http://localhost:3000/ in browser if browser doesn't open automatically.

If you want to access your served site from other device open http://192.168.10.171:3000 where 192.168.10.171 should be replaced with the IP Address of the host machine where your site is served. In this case all the device should be under same network

Build

Run yarn build to build your project. All files including compiled & minified css, js files will be stored in /build directory.