Follow the steps to get the application up and running.
- Postgress up and running
- clone the project:
$ git clone https://github.com/MBAZA-NLP/mbaza-chatbot-knowledge-abstraction-layer.git
- Go to inside the created folder:
$ cd mbaza-chatbot-knowledge-base-abstraction-layer/
- Install node modules:
$ cd npm install
- Create an .env file and past the following:
$ touch .env
add this
INTENT_DB_HOST=[host-of-intent-database]
INTENT_DB_PORT=5432
INTENT_DB_USERNAME=[username-of-intent-database]
INTENT_DB_PASSWORD=[password-of-intent-database]
INTENT_DB_NANE=[name-of-intent-database]
ZAMMAD_DB_HOST=[host-of-zammad-database]
ZAMMAD_DB_PORT=5432
ZAMMAD_DB_USERNAME=[username-of-zammad-database]
ZAMMAD_DB_PASSWORD=[password-of-zammad-database]
ZAMMAD_DB_NAME=[name-of-zammad-database]
PORT=3000
MODE=DEV
RUN_MIGRATIONS=true
DEFAULT_LOCATION=rwanda
- Done!
## Running the app
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
$ npm run dev