Install Node.js¶
Download Node and Npm¶
Download your prefer version of Node.js, the recommend version is 12.22.10
Check that you have node and npm installed¶
To check if you have Node.js installed, run this command in your terminal:
node -v
To confirm that you have npm installed you can run this command in your terminal:
npm -v
Use¶
# Clone
git clone https://github.com/IBM-AR-Greeting-Tool/frontend_admin.git
# Cd in directory
cd frontend_admin
# Install Dependencies
npm install
# Run
npm run dev
Visit http://localhost:9527
Publish¶
# Build Development
npm run build:stage
# Build Production
npm run build:prod
Else¶
# Prewview
npm run preview
# Preview of release environment effects + static resource analysis
npm run preview -- --report
# Code formatting check
npm run lint
# Code formatting check and automatic repair
npm run lint -- --fix