Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.31 KB

File metadata and controls

64 lines (42 loc) · 1.31 KB

Retruco-API

HTTP API to bring out shared positions from argumented statements

Retruco is a software fostering argumentative discussion around statements and allowing to bring out shared positions.

Retruco means immediate, precise and firm response in spanish.

More informations

Retruco-API is currently used by 2 different projects:

Currently, the best way to study Retruco API is to look at the following user interface modules that contain every call to Retruco API:

A Swagger documentations is also available (but may currently contain errors):

Installation

For the first time only:

npm install

Create the database

su - postgres
createuser -D -P -R -S retruco
  Enter password for new role: retruco
  Enter it again: retruco
createdb -E utf-8 -O retruco retruco
psql retruco
  CREATE EXTENSION IF NOT EXISTS pg_trgm;
  \q

Configure the API server

npm run configure

Launch the API server

npm run start

Launch the daemon that handles pending actions

In another terminal:

node process-actions.js