This node app provides a simple way to inspect GTC(Gyrokinetic Toroidal Code) output data. Once deployed on the server, you can examine various plot generated from raw output data, without downloading any files.
- Node.js (>=v12.16.1)
- npm (>=v6.13.4)
- Clone from repository.
mv .env_example .env
and modifies it as you wish.- PORT is the port to which this app listening. Set a larger number to avoid conflicts.
- HOST_DIR is the folder where this app will search gtc output files in.
- Set NODE_ENV to production (for example,
EXPORT NODE_ENV=production
in Linux). - run
npm install --production npm start
You can also, and I suggest to, use process manager or init system to keep app ALWAYS running.
Note: npm install
needs access to a npm repository. If your server do not have Internet access, you can run this command on your own computer, then upload the whole folder to server.
This app use express.js as server framework, and plot figures with the help of Plotly.js, which relies on MathJax to render expressions. Most, if not all figure types are from Huasheng Xie's Matlab program.