├── .eslintignore ├── .eslintrc ├── .gitignore ├── .idea ├── .gitignore ├── codeStyles │ └── codeStyleConfig.xml ├── dataSources.xml ├── misc.xml ├── modules.xml ├── server-base-serverless.iml └── vcs.xml ├── README.md ├── app ├── contracts │ ├── database_service.ts │ ├── dynamo_repository.ts │ ├── locale_service.ts │ ├── queue_service.ts │ ├── request_service.ts │ └── sqs_client.ts └── controllers │ ├── create.ts │ ├── delete.ts │ ├── read.ts │ ├── sqs.ts │ └── update.ts ├── config ├── dynamodb │ └── dynamodb-offline.json ├── env │ ├── dev.yml │ ├── homolog.yml │ └── prod.yml ├── locales │ ├── en-US.json │ ├── locale-service.json │ └── pt-BR.json ├── project_dependencies.ts ├── serverless │ ├── functions.yml │ └── resources.yml └── sqs │ └── sqs-offline.json ├── entities └── model │ ├── user.ts │ ├── user_model.ts │ ├── user_schema.ts │ └── user_validator.ts ├── frameworks ├── error │ ├── base_http_error.ts │ ├── http_client_error.ts │ └── http_server_error.ts ├── locale │ └── i18n_locale_service.ts ├── persistence │ └── dynamodb │ │ ├── dynamo_database_service.ts │ │ ├── dynamo_document_builder.ts │ │ ├── dynamo_offline_database_service.ts │ │ └── dynamo_repository.ts ├── queue │ └── sqs │ │ ├── sqs_aws_client.ts │ │ ├── sqs_offline_service.ts │ │ └── sqs_service.ts └── request │ └── http │ └── http_request_service.ts ├── package.json ├── serverless.yml ├── start_local_services.sh ├── test ├── api-sample.postman_collection.json └── test.post-user-event.json ├── tsconfig.json ├── use_cases ├── add_user.ts ├── get_all_users.ts ├── get_one_user.ts ├── inactivate_user.ts └── update_user.ts └── webpack.config.js /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /workspace.xml 3 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.idea/codeStyles/codeStyleConfig.xml -------------------------------------------------------------------------------- /.idea/dataSources.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.idea/dataSources.xml -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.idea/misc.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/server-base-serverless.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.idea/server-base-serverless.iml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/README.md -------------------------------------------------------------------------------- /app/contracts/database_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/contracts/database_service.ts -------------------------------------------------------------------------------- /app/contracts/dynamo_repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/contracts/dynamo_repository.ts -------------------------------------------------------------------------------- /app/contracts/locale_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/contracts/locale_service.ts -------------------------------------------------------------------------------- /app/contracts/queue_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/contracts/queue_service.ts -------------------------------------------------------------------------------- /app/contracts/request_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/contracts/request_service.ts -------------------------------------------------------------------------------- /app/contracts/sqs_client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/contracts/sqs_client.ts -------------------------------------------------------------------------------- /app/controllers/create.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/controllers/create.ts -------------------------------------------------------------------------------- /app/controllers/delete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/controllers/delete.ts -------------------------------------------------------------------------------- /app/controllers/read.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/controllers/read.ts -------------------------------------------------------------------------------- /app/controllers/sqs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/controllers/sqs.ts -------------------------------------------------------------------------------- /app/controllers/update.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/app/controllers/update.ts -------------------------------------------------------------------------------- /config/dynamodb/dynamodb-offline.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/dynamodb/dynamodb-offline.json -------------------------------------------------------------------------------- /config/env/dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/env/dev.yml -------------------------------------------------------------------------------- /config/env/homolog.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/env/homolog.yml -------------------------------------------------------------------------------- /config/env/prod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/env/prod.yml -------------------------------------------------------------------------------- /config/locales/en-US.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/locales/en-US.json -------------------------------------------------------------------------------- /config/locales/locale-service.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/locales/locale-service.json -------------------------------------------------------------------------------- /config/locales/pt-BR.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/locales/pt-BR.json -------------------------------------------------------------------------------- /config/project_dependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/project_dependencies.ts -------------------------------------------------------------------------------- /config/serverless/functions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/serverless/functions.yml -------------------------------------------------------------------------------- /config/serverless/resources.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/serverless/resources.yml -------------------------------------------------------------------------------- /config/sqs/sqs-offline.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/config/sqs/sqs-offline.json -------------------------------------------------------------------------------- /entities/model/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/entities/model/user.ts -------------------------------------------------------------------------------- /entities/model/user_model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/entities/model/user_model.ts -------------------------------------------------------------------------------- /entities/model/user_schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/entities/model/user_schema.ts -------------------------------------------------------------------------------- /entities/model/user_validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/entities/model/user_validator.ts -------------------------------------------------------------------------------- /frameworks/error/base_http_error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/error/base_http_error.ts -------------------------------------------------------------------------------- /frameworks/error/http_client_error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/error/http_client_error.ts -------------------------------------------------------------------------------- /frameworks/error/http_server_error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/error/http_server_error.ts -------------------------------------------------------------------------------- /frameworks/locale/i18n_locale_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/locale/i18n_locale_service.ts -------------------------------------------------------------------------------- /frameworks/persistence/dynamodb/dynamo_database_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/persistence/dynamodb/dynamo_database_service.ts -------------------------------------------------------------------------------- /frameworks/persistence/dynamodb/dynamo_document_builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/persistence/dynamodb/dynamo_document_builder.ts -------------------------------------------------------------------------------- /frameworks/persistence/dynamodb/dynamo_offline_database_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/persistence/dynamodb/dynamo_offline_database_service.ts -------------------------------------------------------------------------------- /frameworks/persistence/dynamodb/dynamo_repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/persistence/dynamodb/dynamo_repository.ts -------------------------------------------------------------------------------- /frameworks/queue/sqs/sqs_aws_client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/queue/sqs/sqs_aws_client.ts -------------------------------------------------------------------------------- /frameworks/queue/sqs/sqs_offline_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/queue/sqs/sqs_offline_service.ts -------------------------------------------------------------------------------- /frameworks/queue/sqs/sqs_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/queue/sqs/sqs_service.ts -------------------------------------------------------------------------------- /frameworks/request/http/http_request_service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/frameworks/request/http/http_request_service.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/package.json -------------------------------------------------------------------------------- /serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/serverless.yml -------------------------------------------------------------------------------- /start_local_services.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/start_local_services.sh -------------------------------------------------------------------------------- /test/api-sample.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/test/api-sample.postman_collection.json -------------------------------------------------------------------------------- /test/test.post-user-event.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/test/test.post-user-event.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/tsconfig.json -------------------------------------------------------------------------------- /use_cases/add_user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/use_cases/add_user.ts -------------------------------------------------------------------------------- /use_cases/get_all_users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/use_cases/get_all_users.ts -------------------------------------------------------------------------------- /use_cases/get_one_user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/use_cases/get_one_user.ts -------------------------------------------------------------------------------- /use_cases/inactivate_user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/use_cases/inactivate_user.ts -------------------------------------------------------------------------------- /use_cases/update_user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/use_cases/update_user.ts -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etnishiyama/server-base-serverless/HEAD/webpack.config.js --------------------------------------------------------------------------------