{"id":13624972,"url":"https://github.com/erankitcs/AWS_PhotoSimilarity","last_synced_at":"2025-04-16T01:33:09.983Z","repository":{"id":41619993,"uuid":"272144410","full_name":"erankitcs/AWS_PhotoSimilarity","owner":"erankitcs","description":"This project is created to identify and provide similar faces recommendation based on AWS Serverless and Neptune Graph DB.","archived":false,"fork":false,"pushed_at":"2023-01-07T19:19:46.000Z","size":3146,"stargazers_count":1,"open_issues_count":30,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T21:44:07.868Z","etag":null,"topics":["api-gateway","aws","aws-lambda","aws-serverless","cloudformation-template","graph-database","html","iam","javascript","neptune-cluster","neptune-db","nodejs","rekognition","s3-bucket","serverless","vpc","vpc-endpoints"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erankitcs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-14T06:14:50.000Z","updated_at":"2022-01-02T17:32:37.000Z","dependencies_parsed_at":"2023-02-07T22:31:44.436Z","dependency_job_id":null,"html_url":"https://github.com/erankitcs/AWS_PhotoSimilarity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erankitcs%2FAWS_PhotoSimilarity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erankitcs%2FAWS_PhotoSimilarity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erankitcs%2FAWS_PhotoSimilarity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erankitcs%2FAWS_PhotoSimilarity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erankitcs","download_url":"https://codeload.github.com/erankitcs/AWS_PhotoSimilarity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182490,"owners_count":21226074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-gateway","aws","aws-lambda","aws-serverless","cloudformation-template","graph-database","html","iam","javascript","neptune-cluster","neptune-db","nodejs","rekognition","s3-bucket","serverless","vpc","vpc-endpoints"],"created_at":"2024-08-01T21:01:48.967Z","updated_at":"2025-04-16T01:33:09.973Z","avatar_url":"https://github.com/erankitcs.png","language":"JavaScript","readme":"# AWS_PhotoSimilarity\nThis project is created to identify and provide similar faces recommendation based on AWS Serverless and Neptune Graph DB.\n\n## Features:\n### Neptune Stack\n  - VPC creation with two Subnet for high availability.\n  - Network Security Group and Route Table to open HTTPs call to Neptune Cluster.\n  - Internet Gateway and an Elastic IP.\n  - Neptune Database Cluster and Neptune DB Instance.\n  - VPC Endpoint for Neptune to access S3 data files.\n  - Output Cluster Details and IAM roles to API Stack.\n\n### Rekognition Stack\n  - S3 bucket name creation using shortUuid and dotEnv modules.\n  - Lambda Function with API Gateway to create an rekognition collection for image processing.\n  - Lambda Function with API Gateway to delete an rekognition collection.\n  - Lambda Function to process images (indexFaces and searchFaces utility of rekognition) and save Node and Edge   details into CSV format for Neptune DB.\n  - APl Gateway to trigger Lambda function when a new image gets uploaded.\n  - Lambda function with API Gateway to provide list of photos from S3 bucket.\n  - Output S3 bucket name for API Stack.\n\n### API Stack\n  - Query Lambda Function to run parameterised Graph Queries using Gremlin against Neptune Instance.\n  - API Gateway for Query Lambda Function to pass through Query Parameter String.\n  - Loader Lambda Function to load CSV files created by Rekognition Stack Lambda Function into Neptune DB.\n\n### UI\n  - Create Front-End Application based on Node and React.\n  - Call List Lambda function of rekognition Stack to load S3 Image files.\n  - Call Query Lambda Function of API Stack to find similar photos list based on given threshold and hops.\n\n## Setup:\n  - Run npm install in each stack to load Node modules.\n  - Serverless deploy in Neptune Stack first.\n  - Serverless deploy in Rekognition Stack.\n  - Serverless deploy in API Stack.\n  - Manual Step: Attach created IAM role to Neptune DB from Front End.\n  - Use Serverless and run Create collection Lambda function.\n  - Upload Image to S3 bucket and make them public.\n  - Run npm install inside UI folder.\n  - Update App.js with Gateway base URLs and S3 bucket name.\n  - Run npm start\n  - Application is up and running.\n\n## Architecture Diagram:\n\n![Screenshot](ArchitectureDiagram.jpeg)\n\n## Application:\n\n![Screenshot](PhotoSimilarity.gif)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferankitcs%2FAWS_PhotoSimilarity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferankitcs%2FAWS_PhotoSimilarity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferankitcs%2FAWS_PhotoSimilarity/lists"}