Skip to content

Commit

Permalink
book/9-end Lambda, API Gateway done
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Aug 10, 2020
1 parent 0ad3896 commit e8dda69
Show file tree
Hide file tree
Showing 37 changed files with 9,769 additions and 4,242 deletions.
25 changes: 25 additions & 0 deletions book/9-begin/lambda/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
env: {
"es6": true,
"node": true
},
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off'
},
plugins: [
"prettier"
]
}
23 changes: 23 additions & 0 deletions book/9-begin/lambda/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
*~
*.swp
tmp/
npm-debug.log
.DS_Store



.serverless/*
.build/*
.next
.vscode/
node_modules/
.coverage
.env
.env.production
now.json
.note

compiled/
production-server/

yarn-error.log
File renamed without changes.
53 changes: 53 additions & 0 deletions book/9-begin/lambda/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "lambda",
"version": "1",
"license": "MIT",
"scripts": {
"lint": "eslint . --ext .ts,.tsx"
},
"dependencies": {
"aws-sdk": "^2.642.0",
"bcrypt": "^4.0.1",
"connect-mongo": "^3.2.0",
"cors": "^2.8.5",
"dotenv": "8.2.0",
"express": "4.17.1",
"express-session": "^1.17.0",
"he": "^1.2.0",
"highlight.js": "^10.1.1",
"lodash": "^4.17.15",
"marked": "^1.1.0",
"mongoose": "^5.9.2",
"node-fetch": "^2.6.0",
"passport": "^0.4.1",
"passport-google-oauth": "^2.0.0",
"passwordless": "^1.1.3",
"passwordless-tokenstore": "^0.0.10",
"socket.io": "^2.3.0",
"stripe": "^8.81.0",
"typescript": "^3.8.2",
"winston": "^3.3.3"
},
"devDependencies": {
"@types/connect-mongo": "^3.1.3",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.2",
"@types/express-session": "^1.17.0",
"@types/jest": "^25.1.3",
"@types/lodash": "^4.14.149",
"@types/mongoose": "^5.7.2",
"@types/node": "^13.7.4",
"@types/node-fetch": "2.5.6",
"@types/passport": "1.0.0",
"@types/socket.io": "^2.1.8",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
"prettier": "^1.19.1",
"ts-jest": "^25.2.1",
"ts-node-dev": "^1.0.0-pre.44"
}
}
23 changes: 23 additions & 0 deletions book/9-begin/lambda/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compileOnSave": false,
"compilerOptions": {
"jsx": "preserve",
"allowJs": true,
"alwaysStrict": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"removeComments": false,
"preserveConstEnums": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"skipLibCheck": true,
"baseUrl": ".",
"experimentalDecorators": true,
"typeRoots": ["./node_modules/@types"],
"lib": ["es2015", "es2016"],
"module": "commonjs",
"outDir": ".build/",
"rootDir": "./"
}
}
Loading

0 comments on commit e8dda69

Please sign in to comment.