This project is a Natural Language Processing (NLP) application that uses the MeaningCloud API to analyze text. The application is built using Node.js, Express, and Webpack.
-
Clone the repository:
git clone https://github.com/your-username/nlp-project.git
-
Navigate to the project directory:
cd nlp-project
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your MeaningCloud API key:API_KEY=your_api_key_here
-
To start the development server, run:
npm run build-dev
-
To build the production version, run:
npm run build-prod
-
To start the Express server, run:
npm start
npm start
: Starts the Express server on port 8081.npm run build-prod
: Builds the production version.npm run build-dev
: Starts the development server.npm test
: Runs Jest tests.
- Node.js
- Express
- Webpack
- Babel
- Jest
- Supertest
- Workbox (for service workers)
- And more...
-
Make sure Jest and Supertest are installed:
npm install --save-dev jest supertest
-
Run the tests:
npm test
This will run the Jest test suites and provide a summary of the tests passed or failed.
For more information, please refer to the comments in the code or contact the developer.