Skip to content

Serverless/Lambda auth with cognito user pool and claudiajs

License

Notifications You must be signed in to change notification settings

niiknow/ClaudiAuth

Repository files navigation

ClaudiAuth

This repo can be use simply as an Authentication Starter Project or as complex as your use-case required, such as a multi-tenant Saas Product.

Tech Stack

  • NodeJS
  • AWS CLI
  • Cognito User Pool
  • ClaudiaJS: AWS Lambda + API Gateway as micro service
  • AWS S3 as backend storage

Goal/Tasks

  • cognito user pool create and removal script
  • proxy cognito user pool as generic Auth and Users API
  • create generic Saas Architecture API: teams, projects, and tasks.
  • provide direction for enhancement such as: two-factor auth, having more than 1000 users, having more than 1000 projects/tasks/etc...
  • create front-end starter
  • create duplicate API with Laravel PHP to demonstrate front-end starter work with both hosted on Lambda and on any platform starting with PHP

Architecture Design

  • A Team can have many Users
  • A Team can have many Admin Users
  • A Project can have many Users or Team
  • A Project can have many Admin Users
  • A Project can have many Tasks
  • A Project can have many child Projects
  • A Project belongs to a single parent Project
  • A Project can have many [fill_in_the_blank_here]
  • A Task belongs to a single Project.
  • A Task can have many related Tasks

Task was provided as an example, but you can create additional micro-service APIs here to extend this project for your personal use-case.

Example Use-Cases:

  • Project->Charity - Donation Platform
  • Project->Blog - Blogging
  • Project->Products - ecommerce
  • Project->SubscriberLists - email/texting list
  • Project->Pages - cloud CMS

Getting Started

Resource

Point of Interest

MIT

Releases

No releases published

Packages

No packages published

Languages