Skip to content

Latest commit

 

History

History
96 lines (59 loc) · 2.59 KB

README.md

File metadata and controls

96 lines (59 loc) · 2.59 KB

Social Network app

Backend social network application using serverless framework ,typescript, AWS, SDKv3, DynamoDB Single table design, Hexagonal Arquitecture, Best practices.

🔗 Links

linkedin

Kenny Luque

Usage

Clone this repository and install dependencies

  • Install CLI serverless

    npm install serverless -g

  • setting credentials

    aws configure

  • deploy

    npm run deploy

Blogs list

Estrctura del proyecto

├── src
│   ├── functions
│   │   └── getSurvey
│   └── core
│       ├── config
│       │   └── environment.ts
│       ├── app
│       │   ├── schemas
│       │   ├── usecases
│       │   └── ports
│       ├── domain
│       │   ├── models
│       │   └── services
│       │       └── repositories
│       └── infrastructure
│           ├── adapters
│           ├── repositories
│           └── utils
├── test
│   ├── functions
│   │   └── ...
│   └── core
│        └── ...
├── serverless.yml
└── package.json

Social network business use case

This use case talks about using DynamoDB as a social network. A social network is an online service that lets different users interact with each other. The social network we'll design will let the user see a timeline consisting of their posts, their followers, who they are following, and the posts written by who they are following. The access patterns for this schema design are:

  • Get user information for a given userID

  • Get follower list for a given userID

  • Get following list for a given userID

  • Get post list for a given userID

  • Get user list who likes the post for a given postID

  • Get the like count for a given postID

  • Get the timeline for a given userID

Single table design

STD