Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.45 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.45 KB

node-backend

Usage

With Docker

  1. Make sure Docker is installed on your system.
  2. Navigate to the /WebMLOpenEO/app/node-backend in your terminal.
  3. Run the following command to build the Docker image:
    docker build -t node-backend .
  4. Run the following command to run the application:
    docker run -p 3000:3000 --name node-backend node-backend

Without Docker

  1. Make sure node.js is installed on your system.

  2. Navigate to /WebMLOpenEO/app/node-backend in your terminal.

  3. Run the following command to install all dependencies:

    npm install
  4. Run the following command to run the application:

    npm start
    

Testing

Test all

  1. Make sure node.js is installed on your system.

  2. Navigate to /WebMLOpenEO/app/node-backend in your terminal.

  3. Run the following command to install all dependencies:

    npm install
  4. Run the following command to test the application:

    npm test
    

Attention! As this app is heavily dependent on the R-backend, 6 out of 14 tests will fail if the R-backend is not accessible. To start it, please refer to its README.

Single Test

  1. Make sure node.js is installed on your system.

  2. Navigate to /WebMLOpenEO/app/node-backend in your terminal.

  3. Run the following command to install all dependencies:

    npm install
  4. Run the following command to execute a single test "xyz.test.js":

    npm test <xyz>