{"id":23982409,"url":"https://github.com/bobbykim89/pollogram-api-serverless-fastify","last_synced_at":"2026-04-24T12:32:27.211Z","repository":{"id":271316826,"uuid":"913044512","full_name":"bobbykim89/pollogram-api-serverless-fastify","owner":"bobbykim89","description":"Pollogram API written in Fastify, using AWS-CDK as IAC","archived":false,"fork":false,"pushed_at":"2025-01-29T00:14:25.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T03:37:42.833Z","etag":null,"topics":["aws-cdk-typescript","aws-lambda","fastify","neon-postgres","prisma-orm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bobbykim89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-06T23:18:53.000Z","updated_at":"2025-01-29T00:14:29.000Z","dependencies_parsed_at":"2025-01-07T01:21:08.472Z","dependency_job_id":"d63254b1-927f-4892-bd73-bd69bd072b5b","html_url":"https://github.com/bobbykim89/pollogram-api-serverless-fastify","commit_stats":null,"previous_names":["bobbykim89/pollogram-api-serverless-fastify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bobbykim89/pollogram-api-serverless-fastify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbykim89%2Fpollogram-api-serverless-fastify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbykim89%2Fpollogram-api-serverless-fastify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbykim89%2Fpollogram-api-serverless-fastify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbykim89%2Fpollogram-api-serverless-fastify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobbykim89","download_url":"https://codeload.github.com/bobbykim89/pollogram-api-serverless-fastify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbykim89%2Fpollogram-api-serverless-fastify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32223933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aws-cdk-typescript","aws-lambda","fastify","neon-postgres","prisma-orm"],"created_at":"2025-01-07T11:17:57.308Z","updated_at":"2026-04-24T12:32:27.190Z","avatar_url":"https://github.com/bobbykim89.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pollogram-API-Serverless fastify\n\nPollogram-API is a backend API for an Instagram clone project, designed using Fastify and Prisma as ORM. Project is deployed on AWS Lambda using AWS-CDK as its IAS. It provides endpoints to manage users, profiles, posts, and comments.\n\n---\n\n## Features\n\n- User Management: Register, authenticate, and manage user accounts.\n- Profile Management: Create, view, and update user profiles.\n- Post Management: Upload, edit, and view posts.\n- Comment System: Add, edit, and manage comments on posts.\n- Admin Features: WIP\n\n## Endpoints\n\n| Endpoint       | Description                     |\n| -------------- | ------------------------------- |\n| /api/user/     | Manage user-related operations. |\n| /api/profile/  | View and edit user profiles.    |\n| /api/posts/    | CRUD operations for posts.      |\n| /api/comments/ | Manage comments on posts.       |\n\n### /api/user/\n\n| Endpoint          | Description          |\n| ----------------- | -------------------- |\n| /                 | Get user info        |\n| /signup/          | Signup new user      |\n| /login/           | Login user           |\n| /change-password/ | Change user password |\n\n### /api/profile/\n\n| Endpoint                     | Description                                        |\n| ---------------------------- | -------------------------------------------------- |\n| /                            | Get Profiles list                                  |\n| /current-user/               | Get current user profile detailed view             |\n| /current-user/profile-image/ | Update current user's profile image                |\n| /current-user/username/      | Update current user's username                     |\n| /current-user/description/   | Update current user's description                  |\n| /:id/                        | Get user profile detailed view based on profile id |\n| /:id/follow/                 | Follow user profile with profile id                |\n| /:id/unfollow/               | Unfollow user profile with profile id              |\n\n### /api/posts/\n\n| Endpoint     | Description                                             |\n| ------------ | ------------------------------------------------------- |\n| /            | GET: retrieve posts list, POST: Create new post         |\n| /:id/        | GET: get detailed post by id, DELETE: delete post by id |\n| /:id/like/   | Like post by id                                         |\n| /:id/unlike/ | Unlike post by id                                       |\n\n### /api/comments/\n\n| Endpoint     | Description                                                                 |\n| ------------ | --------------------------------------------------------------------------- |\n| /:postId/    | GET: retrieve comments list by post id, POST: create new comment by post id |\n| /:id/delete/ | Delete comment by id                                                        |\n| /:id/like/   | Like comment by id                                                          |\n| /:id/unlike/ | Unlike comment by id                                                        |\n\n## Installation\n\n1. Clone the Repository\n\n```bash\ngit clone https://github.com/bobbykim89/pollogram-api-serverless-fastify.git\n```\n\n2. Install Dependencies\n\n```bash\nnpm install\n```\n\n3. Set Up Environment Variables\u003cbr\u003e\n\n   Create a `.env`, `.env.prod`, `.env.dev` file in the root directory and add the necessary configuration variables (e.g., database URL, secret key, etc.).\n\n4. Run Migrations\n\n```bash\n# for prod build\nnpm run db:prod:migrate:create\nnpm run db:prod:migrate:deploy\n\n# for dev build\nnpm run db:dev:migrate:create\nnpm run db:dev:migrate:deploy\n```\n\n5. Start the Server (Local dev server)\n\n```bash\nnpm run dev:watch\n```\n\n6. Deploy to AWS\n\n```bash\n# prod deploy\nnpm run cdk:deploy:prod\n\n# dev deploy\nnpm run cdk:deploy:dev\n```\n\n## Usage\n\nAfter starting the server, you can access the API endpoints at http://localhost:3000/. Use a tool like Postman or curl to test the API.\n\n## Future Enhancements\n\nFinalize admin route.\nImplement user stories for following/unfollowing.\nAdd notifications for likes and comments.\n\n## License\n\nThis project is licensed under the MIT License.\n\nFeel free to customize further based on your specific implementation!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobbykim89%2Fpollogram-api-serverless-fastify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobbykim89%2Fpollogram-api-serverless-fastify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobbykim89%2Fpollogram-api-serverless-fastify/lists"}