Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paambaati/reading-between-the-lines

๐Ÿ’กSimple energy usage API built using Node.js, TypeScript & Koa
https://github.com/paambaati/reading-between-the-lines

bulb coding-challenge interview-questions koa koa2 nodejs typescript

Last synced: about 2 months ago
JSON representation

๐Ÿ’กSimple energy usage API built using Node.js, TypeScript & Koa

Awesome Lists containing this project

README

        

# reading-between-the-lines

[![Build Status](https://github.com/paambaati/reading-between-the-lines/workflows/PR%20Checks/badge.svg)](https://actions-badge.atrox.dev/paambaati/reading-between-the-lines/goto) [![Test Coverage](https://api.codeclimate.com/v1/badges/fb77b0efca00f8789f5a/test_coverage)](https://codeclimate.com/github/paambaati/reading-between-the-lines/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/fb77b0efca00f8789f5a/maintainability)](https://codeclimate.com/github/paambaati/reading-between-the-lines/maintainability) [![WTFPL License](https://img.shields.io/badge/License-WTFPL-blue.svg)](LICENSE)

A simple API server that lets users access and add meter readings.

The API also extrapolates meter readings to guesstimate the end-of-month cumulative readings.

๐Ÿ“ฃ Note that this project was purpose-built for a coding challenge (see [problem statement](PROBLEM-STATEMENT.md)).

### ๐Ÿ› ๏ธ Setup

```bash
git clone https://github.com/paambaati/reading-between-the-lines
cd reading-between-the-lines

yarn install
yarn build
```

#### ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป Usage
```bash
yarn start
```

For debugging in watch-mode with additional logs, use โ€”

```bash
yarn debug
```

#### ๐Ÿงช Tests & Coverage
```bash
yarn run coverage
```

### ๐Ÿš€ Postman
Once the API is up, import the [`api.postman_collection.json`](https://raw.githubusercontent.com/paambaati/reading-between-the-lines/master/api.postman_collection.json) file in Postman to test the APIs.