GithubHelp home page GithubHelp logo

tricksumo / portfolio-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 202 KB

Portfolio generator using REACT, AUTH0 and AWS S3, CloudFront, Lambda, DynamoDB

Python 23.37% HTML 3.54% JavaScript 67.38% CSS 4.80% Shell 0.91%

portfolio-generator's Introduction

portfolio-generator

Portfolio generator using REACT, AUTH0 and AWS S3, CloudFront, Lambda, DynamoDB

LOCAL SETUP

  1. Create 3 AWS Lambda Functions with following Permissios (Content of functions is in AWS Lambda folder):-
  • cloudFront_cache_invalidator --> CreateInvalidation For CloudFront
  • porfolio_destroyer ----> S3 Full Write Access, DynamoDB Full Access
  • portfolio_creator ----> S3 Full Write Access, DynamoDB Full Access
  • portfolio_editor ----> DynamoDB Full Access
  • s3_signed_url ---------> S3 Full Access
  1. Update lamda function URL settings for all 3:-
Function URL Config=>

* Auth Tyep: NONE
* Confiure CORS: Enable
* Allow origin: *
* Expose Headers: access-control-allow-origin
* Allow headers: content-type
* Allowed Methods: GET, POST
  1. Update function URLs in .env file. Also get AUTH0 credentails and update it in .env file.
  1. Create S3 bucket and use OAI + Cloudfront to make it publicaly available. Also update bucket name and cloudfront distribution id in lambda functions

  2. Add below CORS policy in s3 bucket (Bucket >> Permissions >> Cross-origin resource sharing (CORS)):-

[ { "AllowedHeaders": [ "" ], "AllowedMethods": [ "PUT", "POST" ], "AllowedOrigins": [ "" ], "ExposeHeaders": [], "MaxAgeSeconds": 3000 } ]

  1. Create DynamoDB table with "email_hash" as partition key. Update database name in creator and destroyer functions.

  2. Install REACT dependecies and run

npm i
npm start 

portfolio-generator's People

Contributors

tricksumo avatar

Watchers

 avatar

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.