node.js, node modules (specified in package.json and package-lock.json)
openjdk 11, neo4j 4.4
python3, Python packages (neo4j==4.4, cryptography==3.3.2, lxml, signxml)
- For example, use the directory "/YOUR_DIRECTORY/MaiMLViewerLocalRun/" as your local working directory.
- Download and install from the official site (https://nodejs.org/)
- Both Node.js and npm will be installed.
- If the executables for node and npm are not in PATH, add them manually.
- Execute the following commands:
> cd /YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/ > npm config set proxy <proxy_server>:<port_number>
- Ensure both package.json and package-lock.json exist in "/YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/"
- Execute the following commands to install the required modules:
→ The directory "/YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/node_modules/" will be created.
> cd /YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/ > npm install
- Execute the following command to launch the www file:
> cd /YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/ > node ./bin/www
A-5 Open a web browser and access "http://localhost:3000/"
- Even if an error appears, the connection itself is fine.
- Press the following keys on your keyboard:
ctrl+c
Install and configure the following according to your environment.
- Install openjdk 11.x.xx (https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-11)
- Add two environment variables:
JAVA_HOME=path_to_your_installation (e.g., /YOUR_DIRECTORY/openjdk@11/libexec/openjdk.jdk/Contents/Home) PATH=$JAVA_HOME/bin:$PATH
- Download neo4j 4.4-community edition from the official site (https://neo4j.com/deployment-center/#enterprise)
- Extract the downloaded neo4j-community-4.4.xx-unix.tar.gz and place it in a desired directory (e.g., /YOUR_DIRECTORY/neo4j/)
- Execute the following commands:
> cd /YOUR_DIRECTORY/neo4j/bin/ > ./neo4j console (or > ./neo4j start) Starting Neo4j. Started neo4j (pid:14213). It is available at http://localhost:7474
B-4 Open a web browser and access "http://localhost:7474"
- If the start screen appears, it's working correctly.
- Execute the following commands:
> cd /YOUR_DIRECTORY/neo4j/bin/ > ./neo4j stop
- Add the following environment variables:
NEO4J_HOME=/YOUR_DIRECTORY/neo4j PATH=$PATH:$NEO4J_HOME/bin
- Make sure to check "Add Python to PATH" during installation.
- Install the following Python packages: neo4j==4.4, cryptography==3.3.2, lxml, signxml
- Example commands:
> pip install neo4j==4.4 > pip install cryptography==3.3.2 > pip install lxml > pip install signxml
MAIML_TMP_DIR=/YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/models/tmp
- Modify the neo4j.conf file
- File location:
/YOUR_DIRECTORY/neo4j/conf/neo4j.conf - Edit as follows:
dbms.security.auth_enabled=false dbms.connector.bolt.enabled=true dbms.connector.http.enabled=true
- File location:
- Restart neo4j after editing:
> neo4j restart
- Execute the following commands:
→ The directory "/YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/logs" will be created.
> cd /YOUR_DIRECTORY/MaiMLViewerLocalRun/xmail-viewer/ > node /bin/www
- URL: "http://localhost:3000/"
- The MaiMLViewer list page should appear.
JAVA_HOME, NEO4J_HOME, MAIML_TMP_DIR
node, npm, java, neo4j, python