installation.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Installation and Usage
  2. ======================
  3. Installation
  4. ------------
  5. To install AToMPM, follow these steps:
  6. * Download and install the latest Python 2.7.X
  7. * Use a package manager on Linux
  8. * Or visit http://python.org/download/
  9. * Download and install python-igraph
  10. * Use the pip package manager (comes with Python)
  11. * ``pip install python-igraph``
  12. * For Windows, you may need to install the compiled igraph core
  13. * http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-igraph
  14. * Download and install node.js
  15. * Use a package manager on Linux
  16. * Or visit https://nodejs.org/en/download/
  17. * Download and unzip the newest AToMPM release from https://github.com/AToMPM/atompm/releases
  18. * In the AToMPM folder, run the command ``npm install``
  19. * If you do not need to run tests on AToMPM, you can run ``npm install --production``
  20. Usage
  21. -----
  22. The commands below are for starting the ATOMPM server. Note that the default port is 8124.
  23. Once started, the server can be connected to by accessing http://localhost:8124/atompm in either the Firefox or Chrome browsers.
  24. Windows
  25. ^^^^^^^
  26. To run AToMPM on Windows, execute the ``run.bat`` script inside of the main AToMPM folder.
  27. Mac or Linux
  28. ^^^^^^^^^^^^
  29. * Execute commands in different terminals
  30. 1. Execute ``node httpwsd.js`` in the main AToMPM folder
  31. 2. Execute ``python2 mt\main.py`` in the main AToMPM folder
  32. 3. Open a browser (preferably Chrome) and navigate to http://localhost:8124/atompm
  33. * The above steps are automated by the ``run_AToMPM_local.sh`` script
  34. * Note that the ``run_AToMPM.sh`` script can automate the installation and usage of AToMPM
  35. * The first time you run this script, all dependencies are automatically downloaded and installed in the ``dependencies/`` folder.
  36. * If, for any reason, the download process is interrupted or you experience problems with AToMPM, remove the ``dependencies/`` folder and run the script again.
  37. Tests
  38. -----
  39. To run tests on AToMPM, run ``npm test``