- https://medium.com/@bhargavbachina
- @bhargavbachina
- channel/UCWLSuUulkLIQvbMHRUfKM-g
- https://www.amazon.com/Ultimate-Full-Stack-Development-MEVN-Production-Grade/dp/8197651175/ref=sr_1_1?dib=eyJ2IjoiMSJ9.NOkSGHiZ7Bvz5Y6sePEFqxaVeHjSnQFAnAr0HvWBEVE.FAER5zs6Xd9phpebupVlW5bBtauH-6W9Zfvr5bb0-k0&dib_tag=se&qid=1721579618&refinements=p_27%3ABhargav+Bachina&s=books&sr=1-1&text=Bhargav+Bachina
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { CSVReaderService } from '../service'; | |
| import { ContentResponse } from '../response'; | |
| export class CSVReaderController { | |
| private csvReaderService: CSVReaderService; | |
| constructor() { | |
| this.csvReaderService = new CSVReaderService(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { connect } from "../config/db.config"; | |
| import { SampleContentModel } from '../model'; | |
| export class SampleContentRepository { | |
| constructor() { | |
| connect(); | |
| } | |
| public createContent(data: any) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { model, Schema, Model, Document } from 'mongoose'; | |
| export interface ISampleContent extends Document { | |
| firstName: String; | |
| lastName: String; | |
| email: String; | |
| streetNum: String; | |
| streetName: String; | |
| city: String; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "IsEncrypted": false, | |
| "Values": { | |
| "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=aautipdf;AccountKey=mhoYa5WaLU9JQNyRxgxC5DGoeuEYhy23Zwz0VOIGdMfvw+CrK1PbGzA1fvseQGuW9YkYGVZ+qEIo+AStwHjCFg==;EndpointSuffix=core.windows.net", | |
| "FUNCTIONS_WORKER_RUNTIME": "node", | |
| "COSMOSDB_HOST": "trigger-mongodb.mongo.cosmos.azure.com", | |
| "COSMOSDB_PORT": "10255", | |
| "COSMOSDB_DBNAME": "Ptrigger-mongodb", | |
| "COSMOSDB_USER": "trigger-mongodb", | |
| "COSMOSDB_PASSWORD": "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "IsEncrypted": false, | |
| "Values": { | |
| "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=aautipdf;AccountKey=mhoYa5WaLU9JQNyRxgxC5DGoeuEYhy23Zwz0VOIGdMfvw+CrK1PbGzA1fvseQGuW9YkYGVZ+qEIo+AStwHjCFg==;EndpointSuffix=core.windows.net", | |
| "FUNCTIONS_WORKER_RUNTIME": "node", | |
| "COSMOSDB_HOST": "trigger-mongodb.mongo.cosmos.azure.com", | |
| "COSMOSDB_PORT": "10255", | |
| "COSMOSDB_DBNAME": "Ptrigger-mongodb", | |
| "COSMOSDB_USER": "trigger-mongodb", | |
| "COSMOSDB_PASSWORD": "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: App Runner Template for WebApp | |
| Parameters: | |
| WebAppPort: | |
| Type: Number | |
| Description: The Port that NodeJS API listening on | |
| Default: 80 | |
| AllowedValues: | |
| - 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Outputs: | |
| AppRunnerServiceArn: | |
| Description: ServiceArn of GitHub | |
| Value: !GetAtt WebApp.ServiceArn | |
| AppRunnerServiceId: | |
| Description: AppRunnerServiceId | |
| Value: !GetAtt WebApp.ServiceId | |
| AppRunnerServiceUrl: | |
| Description: AppRunnerServiceUrl | |
| Value: !GetAtt WebApp.ServiceUrl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WebApp: | |
| Type: AWS::AppRunner::Service | |
| Properties: | |
| ServiceName: !Sub WebApp-${Environment} | |
| SourceConfiguration: | |
| AuthenticationConfiguration: !If | |
| - NeedsAccessRole | |
| - AccessRoleArn: !GetAtt AccessRole.Arn | |
| - !Ref AWS::NoValue | |
| AutoDeploymentsEnabled: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: App Runner Template for WebApp | |
| Parameters: | |
| WebAppPort: | |
| Type: Number | |
| Description: The Port that NodeJS API listening on | |
| Default: 80 | |
| AllowedValues: | |
| - 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSTemplateFormatVersion: "2010-09-09" | |
| Description: ECR Repository For the Docker Image | |
| Resources: | |
| ECRRepo: | |
| Type: AWS::ECR::Repository | |
| Properties: | |
| EncryptionConfiguration: | |
| EncryptionType: AES256 | |
| ImageScanningConfiguration: |