Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

1. How to

...

quickly test SimDB tool?

Code Block
module load itm-python/3.10 simdb
simdb remote token new
simdb remote list

2. How to install SimDB?

2.1. GW installation

Tip

In order not to overwrite installed python versions, it is recommended to use a virtual environment when installing the tool on GW


Code Block
git clone ssh://git@git.iter.org/imex/simdb.git
python -m venv venv
source venv/bin/activate
cd simdb
git checkout <VERSION_YOU_NEED>
pip3 install -t <INSTALL_PATH> .

2.2. Default way of installation

Code Block
git clone ssh://git@git.iter.org/imex/simdb.git
cd simdb
git checkout <VERSION_YOU_NEED>
pip3 install -t <INSTALL_PATH> .

3. Developer guide

3.1. Running the tests

In the SimDB root directory run:

Code Block
pytest

3.2. Running a development server

Code Block
simdb_server

This will start a server on port 5000. You can test this server is running by opening htpp://localhost:5000 in a browser.