Documentation of development server and build process
MatX React uses React Framework for development serve and build process
- 1. Make sure if NodeJs is installed on your computer.
- 2. Open terminal and navigate to root
/matx-reactdirectory and run
npm installto install dependencies.
- 3. Again in that terminal run
npm install create-react-appto install React Framework.
npm start to start local development server. You will be automatically redirected to your default browser's page which contains you served site.
http://localhost:3000/ in browser if browser doesn't open automatically.
If you want to access your served site from other device open
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
npm run build to build your project.
All files including compiled & minified css, js files will be stored in
If Node.js is already installed, make sure you’re running v8 or up.
- 1. The installed
npmversion must be at least v6.9.0 You can update your npm with:
npm install npm -g(
sudomay be required).
- 2. Re-install dependencies:
rm -Rf node_modules && npm install
- 3. Run
- If this did not work, try running
npm cache cleanand repeat the above steps.