The tutorial example uses Webpack 4 to transpile the React code and bundle the modules together, and the webpack dev server is used as the local web server, to learn more about using webpack you can check out the official webpack docs.
- Install NodeJS and NPM from
https://nodejs.org/en/download/
. - Download or clone the tutorial project source code from
https://github.com/tbsphpdev/React-Role-Based-Authorization-Example
- Install all required npm packages by running
npm install
from the command line in the project root folder (where the package.json is located). - Start the application by running
npm start
from the command line in the project root folder. - Your browser should automatically open at
http://localhost:8080
with the login page of the demo React role-based authorization app displayed.