Exported on 28-Sep-2021 13:49:00
Parameters
1 - Update Yum Repositories
Update yum packages.
Login as user {Linux User} on node {Linux Node}
# Install APT update
sudo yum -y update
2 - Install Node Package Manager
Install NPM - Node Package Manager.
Login as user {Linux User} on node {Linux Node}
# Install npm
sudo apt -y install npm
3 - Install Node.js
Install Node.js cli
Login as user {s1c} on node {s1}
# Download setup script
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
# Start installation
sudo apt-get install -y nodejs
4 - Create React App
Creates a demo React application.
Login as user {Linux User} on node {Linux Node}
# Scaffold a react project
npx create-react-app myfirstreactapp
5 - 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 Debian Based Systems.
This Blueprint Installs React.js development server on a Debian 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