This project is a RESTful API built with NestJS, to handle string utils functions
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of Node.js and npm
- You have AWS CLI configured properly including credentials
- You have AWS CDK installed (https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html)
lambda/
├── nestjs/ # Application modules
│ ├── src/ # User module (example)
│ ├── middleware/ # Contains the middleware to log the Inputs and Outputs (Test are included in the file)
│ │
│ ├── string-masking/ # Controller for string masking (Test are included in the file)
│
lib/
│
├── cdk-simple-lambda-nestjs-stack.ts # CDK Stack for Building AWS Gateway and AWS Lambda
To install the NestJS API Project, follow these steps:
- Clone the repository:
git clone git@github.com:Hosar/string-masking.git
- Navigate to the project directory:
cd string-masking
- Install the dependencies:
npm install
npm run test
To use NestJS API Project, follow these steps:
- Start the development server:
npm run start
- The SWAGGER will be available at
http://localhost:3000/api
- The API will be available at
http://localhost:3000/api/string-masking
Describe your API endpoints here. For example:
GET /api/string-masking?input=Skippy
GET /api/string-masking?input=64607935616
GET /api/string-masking?input=Nananananananananananananananana Batman!
- cd lambda -> cd nestjs
- npm run build
- from root folder (cd ../cd..)
execute:
npx cdk synth
,npx cdk bootstrap
,npx cdk deploy