REST API endpoints details. Main endpoints:
- /analyze?text=<text>
- Tested with Node 8.4.0
The server should be able to run with the default configurations.
Modify the environment variables, or create a .env file in the root folder (details).
PORT (default: 3000) The port to run the API endpoint server.
The src/config.js file has general configurations. In most cases the configurations can be altered with environment variables.
Install Node.js, and optionally install yarn.
To install dependencies run yarn or npm install.
For all scripts you can replace yarn by npm if you do not have yarn installed.
yarn startstarts the server.yarn run devautomatically reloads the server when developing.yarn run buildcompiles pre-ES6 JavaScript to thebuildfolder to use with a regular node environment.
Run the server then go to http://127.0.0.0:3000 (or configured port). This will show a demo HTML page where you will be able to input text to be analyzed.