One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
const express = require('express'); | |
const graphqlHTTP = require('express-graphql'); | |
const schema = require('./schema/schema'); | |
const mongoose = require('mongoose'); | |
const app = express(); | |
const MongoClient = require('mongodb').MongoClient; | |
const uri = ""; | |
mongoose.connection.once('open', () => { | |
console.log('connected to database') |
const AWS = require('aws-sdk'); | |
//In the test file | |
const mockDynamodbGetItem = jest.fn(); | |
const mockS3GetObject = jest.fn(); | |
//mock aws sdk | |
jest.mock('aws-sdk', () => { | |
return { |
export class Logger { | |
logError(): void { | |
console.error('Error',...args); | |
}, | |
logInfo(): void { | |
console.info('Info',...args); | |
}, | |
logWarn(): void { | |
console.info('Warning',...args); |
#!/usr/bin/env sh | |
STATUS_COMPLETED="COMPLETE" | |
STATUS_IN_PROGRESS="IN_PROGRESS" | |
IMPORT_STATUS="IN_PROGRESS" | |
#Clear the distribution directory | |
rm -rf dis | |
mkdir dist && mkdir dist/input && mkdir dist/output | |
#Move to the new lex directory and merge all intents and slot types into single file | |
gomplate --input-dir=src/lex/slottypes/ --output-dir=dist/input/slottypes --datasource config=iac/resources/env/$ENVIRONMENT/config.json |
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
TypeDoc - To generated documentation from typescript code | |
https://typedoc.org/ |
CTRL + A
— Move to the beginning of the lineCTRL + E
— Move to the end of the lineCTRL + [left arrow]
— Move one word backward (on some systems this is ALT + B)CTRL + [right arrow]
— Move one word forward (on some systems this is ALT + F)CTRL + U
— (bash) Clear the characters on the line before the current cursor positionCTRL + U
—(zsh) If you're using the zsh, this will clear the entire lineCTRL + K
— Clear the characters on the line after the current cursor positionESC + [backspace]
— Delete the word in front of the cursor