Skip to content

How to run REST API

Sebastian Zimmeck edited this page Jun 21, 2024 · 7 revisions
  1. Navigate to the rest-api folder, and run

    npm install
  2. Create a file named .env with the following information:

    DB_CONNECTION=mysql
    DB_HOST=localhost
    DB_DATABASE=analysis
    DB_USERNAME=root
    DB_PASSWORD=
  3. To run the REST API without the debugging table, run

    node index.js

    To run the REST API with the debugging table, run

    node index.js debug

    For more information on the debugging table, see the Wiki.

  4. Open a browser and navigate to http://localhost:8080/analysis and check if you can see the analysis data.

Clone this wiki locally