Git Product home page Git Product logo

nuclear-codes's Introduction

Nuclear Codes

What is nuclear codes?

Nuclear Codes is a simple facial recognition mac app. Heavily inspired by Donald Trump taking office in 2017 and him gaining access to the nuclear codes. The app takes a snapshot of the person in front of the screen, compares it with an image that is allowed to access the nuclear codes, either lets them view the codes or not.

This was a simple task to develop further skills in React and a chance to try out the AWS AI services.

What is the stack?

  • ElectronJS - Used for the mac interface.
  • React - My JS framework of choice.
  • AWS Rekognition - used for comparing the given face with the "presidents" face.
  • AWS Polly - used for the voice prompts.

How can I try it out?

  1. Create an AWS account and make sure your user has S3, Rekognition and Polly read and write access. See this and this if you are unsure how to get this set up.

  2. In the AWS console create an S3 bucket with the name of rekognitionnn-{mysecret}. Change mysecret to be unique to your account.

  3. Upload your "president" image. Make sure you change the president.jpg file in the repo to be a clear picture of your face. Then from the root directory, run:

  s3 cp ./president.jpg s3://{your_bucket_name}/nuclear-codes/president.jpg

(Make sure your CLI is using the details for the account you are using for this application. I use Named Profiles to do this.)

  1. Copy the aws_config.json.example into aws_config.json and update the details to be the security credential of the user you are using in the aws_config.json file.
aws cp aws_config.json.example aws_config.json
  1. The bucket name is kept as a constant in our AWSUtil module. So go over there and make sure you update this line with the bucket name you created in point two.

  2. That should be everything, lets install the dependencies and spin up the app.

npm install && npm build && npm run app

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.