Description

React.js + Node.js + MongoDB project with Aho–Corasick algorithm implementation on backend. This is the Node.js backend part.

Installation

$ npm install

MongoDB

There is a docker-compose.yml file for starting MongoDB database docker container.

$ docker-compose up

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov