Copyright 2017-2019 Storage Networking Industry Association (SNIA), USA. All rights reserved. For the full SNIA copyright policy, see http://www.snia.org/about/corporate_info/copyright
Contributors that are not SNIA members must first agree to the terms of the SNIA Contributor Agreement for Non-Members: https://www.snia.org/cla
The Swordfish Basic Web Client can connect to one or more Swordfish services (including the Swordfish emulator), and present in a web UI frame the entire Swordfish hierarchy. The basic web client also provides basic capabilities to modify configurable Properties (as specified in the schema), as well an providing a basic interface to add or remove elements from the service through a Web UI.
node.js
and npm
if they are not already on your machine.commands.bat
file to install angular-cli and express globally.npm install -g express
,npm install -g @angular/cli@latest
Run the below commands in terminal/console window, if you are running the application for the first time.
cd views && npm install
cd views
changes the current working directory(project) path to views folder where angular application resides, npm install
will install all modules listed as dependencies in package.json
in to the local node_modules
folder. which are required to run the angular application.
2.ng build
The ng build
command is intended for building the app and deploying the build artifacts. The build artifacts will be stored in the dist/ directory
cd .. && npm install
cd ..
reverts the path from views folder to project folder. npm install
install all modules listed as dependencies in project's package.json
in to the local node_modules
folder required to run the node application.
npm start
This runs an arbitrary command specified in the package.json's "start" property of its "scripts" object.Npm scripts let you group together and run logically related commands and establishes a development server to execute the code , launches the application on browser.
Open http://localhost:3000/
in your browser to access the Web Client.
npm start
will launch the application on browser's http protocol and localhost as IPaddress on port 3000
** Note: build to angular application is required upon any pull request or if, any changes are detected. Follow the below steps to build and run the application
cd views && ng build
cd .. && npm start
Or
Directly run the application using npm start
.
Username: swordfish@snia.org
Password: snia@123
The information about the credentials are listed in views/src/assets/json/login.json
file