2.2.1. Install SimpleELN Team Edition Web Server with External Database

The Team Edition is ideally suited for groups with multiple team members, facilitating seamless data sharing among members within each team. It functions as an HTTP server by default, enabling concurrent access for numerous users. For production usage, it is highly recommended to configure an external database such as MySQL, SQL Server, or Oracle. These databases offer robust performance, scalability, and security features that are crucial for handling mission-critical data and ensuring the stability of your application. For testing purposes, kindly refer to the instructions outlined in Install SimpleELN Team Edition with an Embedded Database to effortlessly evaluate the SimpleELN Team Edition with an embedded database, requiring no additional configurations.

2.2.1.1. Installing External Database and Running Web Server Manually

MySQL server is highly recommended as the preferred database server for production environments. Kindly refer to the official instructions provided by the database suppliers for configuring and utilizing other databases of interest. Here’s a step-by-step guide to installing MySQL and creating the simpleelndb database:

2.2.1.1.1. Installing MySQL Server and Create the Application Database

  1. Install MySQL Server

    Depending on your operating system, you can download and install MySQL server from the official MySQL website. During the installation process, follow the prompts and make sure to select the Server option.

  2. Create the Database (Tutorial / Creating and Using a Database)

    Once the installation is complete, open the MySQL command line client or use any MySQL management tool (such as phpMyAdmin). Use the following SQL command to create a database named simpleelndb:

    1# create a database named simpleelndb
    2CREATE DATABASE simpleelndb;
    
  3. Configure Database User and Permissions

    1#Create a new user by assigning a unique username and password. For example, the username is "new-user" and the password is "new-pass".
    2#Replace 'new-user' with the desired username and 'new-pass' with the desired password for the new user
    3CREATE USER 'new-user'@'localhost' IDENTIFIED BY 'new-pass';
    4#Grant access to the simpleelndb database, replace 'new-user' with the desired username
    5GRANT ALL PRIVILEGES ON simpleelndb.* TO 'new-user'@'localhost';
    6FLUSH PRIVILEGES;  # Refresh the permissions
    

2.2.1.1.2. Installing and Running the SimpleELN Web Server

  1. Download the application archive file (SimpleELN-Team-Server-{platform}-{arch}-{version}.zip or SimpleELN-Team-Server-{platform}-{arch}-{version}.tar.gz) for the target platform from the official website or a trusted source.

  2. Rename the downloaded archive file to simpleeln-team.zip or simpleeln-team.tar.gz for convenient identification.

  3. Extract the archive file.

    • For Windows:

      Extract the simpleeln-team.zip file into a designated folder, as outlined in the Microsoft support documentation.

    • For macOS or Linux:

      • Open a terminal from the Applications menu or use the Spotlight search (⌘ + Space).

      • Extract the simpleeln-team.tar.gz file as outlined below.

        1# Extract the simpleeln-team.tar.gz file
        2tar -xzvf <path/to/simpleeln-team.tar.gz> -C <path/to/target/folder>
        
  4. Open a terminal window

    • On Windows, you can press Win + R and type cmd to open a command prompt.

    • On macOS or Linux, you can open a terminal from the Applications menu or use the Spotlight search (⌘ + Space).

  5. Navigate to the directory where the archive file has been extracted.

  6. Modify the database connection settings. (Create the datasource.properties file and place it in the ‘config’ folder if not exist)

    Listing 2.2 contents of the config/datasource.properties file
     1# contents of the config/datasource.properties file
     2# spring.datasource.url: the connection url to access the simpleelndb database
     3spring.datasource.url=jdbc:mysql://localhost:3306/simpleelndb?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8
     4# spring.datasource.username: the 'username' to access the simpleelndb database
     5spring.datasource.username='new-user'
     6# spring.datasource.password: the 'password' to access the simpleelndb database
     7spring.datasource.password='new-pass'
     8spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
     9spring.datasource.sql-script-encoding=UTF-8
    10spring.datasource.schema=classpath:elnschema.mysql.sql
    
  7. Modify the web server settings. (Create the application.properties file and place it in the ‘config’ folder if not exist)

    Listing 2.3 contents of the config/application.properties file
    1# contents of the config/application.properties file
    2# server.port=32780 #default
    3server.port=32780
    
  8. Run the SimpleELN web server

    • For Windows:

      1# run the script
      2startserver.bat
      
    • For macOS or Linux:

      1# run the script
      2./startserver.sh
      
  9. Accessing the web server. Please refer to the reference Accessing the web server through a web browser for detailed step-by-step instructions on how to access the web server through a web browser.

2.2.1.2. Installing External Database and Running Web Server Automatically via Docker

The SimpleELN Team Edition docker package is optimized for production, with an external MySQL database preconfigured. To facilitate the installation of the MySQL database and the simpleeln server for production use, instructions for Docker installation are provided. With Docker, the MySQL database and the simpleeln server can be configured and managed automatically. For testing purposes, kindly refer to the instructions outlined in Install SimpleELN Team Edition with an Embedded Database to effortlessly evaluate the SimpleELN Team Edition with an embedded database, requiring no additional configurations.

Here’s a step-by-step guide to installing Docker, Docker Compose and running the web server of SimpleELN Team Edition:

  1. Install Docker

    Visit the Docker website to download and install the appropriate version of Docker for your operating system.

  2. Install Docker Compose

    Visit the Docker Compose website and follow the instructions to install Docker Compose.

  3. Download and extract the SimpleELN Team Edition docker package file.

    • Download the SimpleELN Team Edition docker package file (SimpleELN-Team-Docker-Server-{arch}-{version}.tar.gz) for the target platform from the official website or a trusted source.

    • Rename the downloaded archive file to simpleeln-team-docker.tar.gz for convenient identification.

    • Extract the archive file.

      • For Windows:

        Utilize an external program to decompress the simpleeln-team-docker.tar.gz archive into a designated folder.

      • For macOS or Linux:

        • Open a terminal from the Applications menu or use the Spotlight search (⌘ + Space).

        • Extract the simpleeln-team-docker.tar.gz file as outlined below.

          1# Extract the simpleeln-team-docker.tar.gz file
          2tar -xzvf <path/to/simpleeln-team-docker.tar.gz> -C <path/to/target/folder>
          
  4. Open a terminal window

    • On Windows, you can press Win + R and type cmd to open a command prompt.

    • On macOS or Linux, you can open a terminal from the Applications menu or use the Spotlight search (⌘ + Space).

  5. Navigate to the directory where the archive file has been extracted.

  6. Run the SimpleELN web server using Docker

    1# The -d flag runs the containers in the background.
    2docker compose up -d
    
  7. Accessing the web server. Please refer to the reference Accessing the web server through a web browser for detailed step-by-step instructions on how to access the web server through a web browser.

Screenshots

Accessing the web server through a web browser

  1. Open a web browser (such as Google Chrome, Mozilla Firefox, Microsoft Edge, etc.).

  2. Navigate to http://<host_ip>:<port>, making sure to replace <host_ip> with the IP address of your server host machine and <port> with the designated port number.

    • For the web server started directly, the <port> is specified in the application.properties file located within the config folder. For example, replace the <port> with the server.port number specified in the application.properties file: 32780

    • For the web server started using Docker, the <port> is specified within the docker-compose.yml file.

    • The default address is http://localhost:32780

  3. If the connection is successful, you will be able to access the SimpleELN interface, similar to the following screenshot.

    SimpleELN Homepage