- To do
- Blocked
- In progress
- To deploy
- Ready to test
- QA validating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import HttpService from './HttpService'; | |
export default class WitService { | |
constructor(private readonly httpService: HttpService) { | |
['WIT_API_URL', 'WIP_API_TOKEN'].forEach((environmentVar) => { | |
if (!process.env[environmentVar]) { | |
throw new Error(`Missing ${environmentVar} environment var`); | |
} | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express, { Express, Request, Response } from 'express' | |
import bodyParser from 'body-parser' | |
import dotenv from 'dotenv-safe' | |
import prettyError from 'pretty-error' | |
import { handler } from './src/app' | |
import { SQSPayloadInterface } from './src/interfaces/PayloadInterface' | |
prettyError.start() | |
dotenv.config() |
OlderNewer