Exported on 28-Sep-2021 13:55:01
Parameters
1 - Update Yum Repositories
Update yum packages.
The connection details have changed from the last step.
Login as user {Linux User} on node {Linux Node}
# Install APT update
sudo yum -y update
2 - Install Node & NPM
This installs NodeJS server into the target machine.
Login as user {Linux User} on node {Linux Node}
# Download setup script
sudo curl -fsSL https://rpm.nodesource.com/setup_12.x -o nodesource.sh
# Configure install script
sudo bash nodesource.sh
# Start installation
sudo yum install -y nodejs
3 - Create React App
Creates a demo React application.
The connection details have changed from the last step.
Login as user {Linux User} on node {Linux Node}
# Scaffold a react project
npx create-react-app myfirstreactapp
4 - Start React Development Server
Starts the react development server in background.
To access the running server process, use the command: screen -x
Login as user {Linux User} on node {Linux Node}
# Change working directory
cd myfirstreactapp
# Install screen package
sudo yum -y install screen
# Configure screen to run in background
sudo echo "zombie xy" >> ~/.screenrc
# Start development server
screen -d -m npm start
Configure React Development Server on RHEL Based Systems.
This Blueprint Installs React.js development server on a RHEL Based Systems.
React is a free and open-source front-end JavaScript library for building user interfaces or UI components. React was created by Facebook and is maintained by a open-source community.
Instead of mixing a bunch of unrelated JavaScript and HTML, React encourages building simple components with small bits of related state and properties that work well together. It lets you look at a single component and understand the design.
Pre-Blueprint Attune setup
Blueprint Steps