Welcome to the ParaViewWeb documentation. If you encounter any problems when using ParaViewWeb, have a look at the troubleshooting guide, raise an issue on GitHub or start a topic on the Mailing list.
What is ParaViewWeb?
ParaViewWeb is a Web framework that can leverage ParaView and VTK to build interactive application
inside your Web browser.
Installation
It only takes few minutes to set up ParaViewWeb. If you encounter a problem and can’t find the solution here, please submit a GitHub issue and I’ll try to solve it.
Requirements
Installing ParaViewWeb as a dependency inside your Web project is quite easy. However, you do need to have a couple of other things installed first:
If your computer already has these, congratulations! Just install ParaViewWeb with npm:
$ npm install paraviewweb --save |
If not, please follow the following instructions to install all the requirements.
For Mac usersYou may encounter some problems when compiling. Please install Xcode from App Store first. After Xcode is installed, open Xcode and go to Preferences -> Download -> Command Line Tools -> Install to install command line tools.
Install Git
- Windows: Download & install git.
- Mac: Install it with Homebrew, MacPorts or installer.
- Linux (Ubuntu, Debian):
sudo apt-get install git-core
- Linux (Fedora, Red Hat, CentOS):
sudo yum install git-core
Install Node.js
The best way to install Node.js is with nvm.
cURL:
$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh |
Wget:
$ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh |
Once nvm is installed, restart the terminal and run the following command to install Node.js.
$ nvm install 4 |
Alternatively, download and run the installer.
Install ParaViewWeb
Once all the requirements are installed, you can install Hexo with npm.
$ npm install paraviewweb --save |
Getting ParaViewWeb source code for contributing
$ git clone https://github.com/kitware/paraviewweb.git |
This documentation will explain how to create a new Web project that can leverage ParaViewWeb.
$ mkdir MyWebProject |
Creating your own project
Webpack config
const path = require('path'); |
package.json
You should extend the generated package.json file with the following set of scripts.
{ |
Run
To build your application you can run npm run build
and to test/debug it npm start
while opening http://localhost:9999
.