Skip to content

Getting Score develop environments with Docker, Node.js, and JDK.

Hakju Oh edited this page Nov 9, 2022 · 4 revisions

Here's simple step-by-step guide to getting Score develop environments with Docker, Node.js, and JDK.

Docker

  1. Install Docker Desktop with default settings for MySQL and Redis.

    https://www.docker.com/products/docker-desktop

  2. Pulling srt-repo (MySQL 5.7 with an initial data) and redis images down.

    • Note that you should connect to docker hub on a shell by docker login command with Docker ID and password. Also, you MUST have a permission to access oagi1docker Docker Hub repository.
    1. Run docker image pull oagi1docker/srt-repo:2.4.0 command on a shell to pull srt-repo image.
    2. Run docker image pull redis:6 command on a shell to pull redis image.
  3. Run srt-repo and redis containers

    1. Run docker run --name srt-repo -d -p 3306:3306 oagi1docker/srt-repo:2.4.0 command on a shell.
    2. Run docker run --name redis -d -p 6379:6379 redis:6 command on a shell.

Node.js

  1. Install Node.js with default settings for score-web.

    https://nodejs.org/en/download/

  2. Execute npm install command on score-web directory.

  3. Run npm start on score-web directory for deploying a server.

JDK

  1. Install AdoptOpenJDK 11+ with default settings for score-http.

    https://adoptopenjdk.net/

  2. Add JDK to PATH environment.

    • Windows:

      System dialog > Advanced system settings > Environment Variables

      1. Add or Edit JAVA_HOME

      JAVA_HOME = <AdoptOpenJDK path>

      1. Edit PATH

      PATH = %PATH%;%JAVA_HOME%\bin

    • Linux/Mac OS:

      cat << EOF >> ~/.bash_profile
      # Add AdoptOpenJDK
      export JAVA_HOME="<AdoptOpenJDK path>"
      export PATH="\$PATH:\$JAVA_HOME/bin"
      EOF
  3. Run mvnw spring-boot:run on score-http directory for deploying a server.

Clone this wiki locally