Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.13 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.13 KB

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

Description

Application for consuming website carbon data via kafka queue, persisting to db.

Require .env with following connection details:

WEB_CARBON=https://api.websitecarbon.com/site?url=

POSTGRES_HOST=SOME_HOST
POSTGRES_PORT=SOME_PORT
POSTGRES_USER=SOME_USER
POSTGRES_PASSWORD=SOME_PASS
POSTGRES_DATABASE=SOME_DB_NAME
PORT=SOME_PORT
MODE=DEV
RUN_MIGRATIONS=false

Installation

$ npm install

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