Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 2.11 KB

File metadata and controls

81 lines (53 loc) · 2.11 KB

DENIM Web

Installation

Prerequisites

  1. NodeJS:
  1. Docker:

Launching

You have the tree following options.

Launching from Docker Hub (preferred)

Launching from source code

  • Open the project in an IDE and install the dependencies. VSCode is recommended. Recommended extensions are described in /.vscode.

    npm install
  • Create an .env file with the following content and adapt the host address if necessary.

    # Windows
    VITE_DOWNLOAD_MICROSERVICE=http://localhost:8081
    VITE_REVERSE_ENGINEERING_MICROSERVICE=http://localhost:8082
    VITE_VISUALIZING_MICROSERVICE=http://localhost:8083
    VITE_EVOLVING_MICROSERVICE=http://localhost:8084

⚠️ All environment variables must be prefixed by VITE.

  • Build the application.

    npm run build
  • Launch the application.

    npm run start

    The app runs at http://localhost:4173/.

Launching from source code with Docker

  • Open the project in an IDE and install the dependencies.

    npm install
  • Build the application.

    npm run build

The project contains a Dockerfile at its root in order to create an image of the application.

A docker-compose.yml file also exists at the root in order to launch easily a container for the application.

  • Build the image and launch the container.

    docker-compose up // TODO: environment variable in the command line

⚠️ This command must be executed at the location of the docker-compose.yml file and have to be run as with the right privileges (administrator).