This is an example serverless rest api example that uses aws dynamodb and dynamodb streams. This example is configured with a number of plugins and standards for checking code standards. It also handles authentication via Auth0 and json validation. Free free to reach out with any comments / questions.
Download node at nodejs.org and install it, if you haven't already.
npm install
npm run offline
- ajv: Another JSON Schema Validator
- jsonwebtoken: JSON Web Token implementation (symmetric and asymmetric)
- serverless-domain-manager: Serverless plugin for managing custom domains with API Gateways.
- uuid: Rigorous implementation of RFC4122 (v1 and v4) UUIDs.
- babel-eslint: Custom parser for ESLint
- babel-loader: babel module loader for webpack
- babel-plugin-transform-flow-strip-types: Strip flow type annotations from your output code.
- babel-plugin-transform-runtime: Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
- babel-preset-env: A Babel preset for each environment.
- babel-preset-flow: Babel preset for all Flow plugins.
- eslint: An AST-based pattern checker for JavaScript.
- eslint-config-prettier: Turns off all rules that are unnecessary or might conflict with Prettier.
- eslint-loader: eslint loader (for webpack)
- eslint-plugin-flowtype: Flowtype linting rules for ESLint.
- eslint-plugin-prettier: Runs prettier as an eslint rule
- husky: Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
- jest: Delightful JavaScript Testing.
- lint-staged: Lint files staged by git
- npm-git-secrets: installs and configures git secrets
- prettier: Prettier is an opinionated code formatter
- prettier-eslint: Formats your JavaScript using prettier followed by eslint --fix
- serverless: Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
- serverless-aws-documentation: Serverless 1.0 plugin to add documentation and models to the serverless generated API Gateway
- serverless-dynamodb-local: Serverless dynamodb local plugin
- serverless-jest-plugin: Serverless plugin for test driven development using Jest
- serverless-offline: Emulate AWS λ and API Gateway locally when developing your Serverless project
- serverless-plugin-offline-dynamodb-stream: Serverless framework offline plugin to support dynamodb stream
- serverless-webpack: Serverless plugin to bundle your javascript with Webpack
- webpack: Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
- webpack-node-externals: Easily exclude node_modules in Webpack bundle