Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Content and sentiment filtering example

NotificationsYou must be signed in to change notification settings

topcoderinc/content-sentiment-demo

Repository files navigation

REST API

REST API endpoints details. Main endpoints:

  • /analyze?text=<text>

Requirements

  • Tested with Node 8.4.0

Configurations

The server should be able to run with the default configurations.

Environment Variables

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.

General Configurations

Thesrc/config.js file has general configurations. In most cases the configurations can be altered with environment variables.

Installation and Scripts

InstallNode.js, and optionally installyarn.

To install dependencies runyarn ornpm install.

Scripts

For all scripts you can replaceyarn bynpm if you do not have yarn installed.

  • yarn start starts the server.
  • yarn run dev automatically reloads the server when developing.
  • yarn run build compiles pre-ES6 JavaScript to thebuild folder to use with a regular node environment.

Project Overview

Run the server then go tohttp://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.

About

Content and sentiment filtering example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp