{"id":17601023,"url":"https://github.com/purinx/next-sst-pg","last_synced_at":"2026-01-31T15:01:11.453Z","repository":{"id":258887899,"uuid":"875506910","full_name":"purinx/next-sst-pg","owner":"purinx","description":"This is a sample for easily building an app (infrastructure) using Next.js and PostgreSQL on AWS with SST.","archived":false,"fork":false,"pushed_at":"2024-10-21T01:17:10.000Z","size":210,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T14:42:24.546Z","etag":null,"topics":["aws","nextjs","postgresql","sst"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purinx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-10-20T06:53:03.000Z","updated_at":"2025-01-23T13:12:26.000Z","dependencies_parsed_at":"2024-10-22T21:38:36.330Z","dependency_job_id":null,"html_url":"https://github.com/purinx/next-sst-pg","commit_stats":null,"previous_names":["purinx/next-sst-pg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/purinx/next-sst-pg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinx%2Fnext-sst-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinx%2Fnext-sst-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinx%2Fnext-sst-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinx%2Fnext-sst-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purinx","download_url":"https://codeload.github.com/purinx/next-sst-pg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinx%2Fnext-sst-pg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28946049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","nextjs","postgresql","sst"],"created_at":"2024-10-22T12:07:52.884Z","updated_at":"2026-01-31T15:01:11.437Z","avatar_url":"https://github.com/purinx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SST PostgreSQL Sample\n\nThis is a sample for easily building a simple app (infrastructure) using Next.js and PostgreSQL on AWS with SST.\n\n## Overview\n\n- sst\n- Next.js\n- PostgreSQL\n- Drizzle ORM\n\n## Requirements\n\n- AWS\n  - https://sst.dev/docs/aws-accounts\n- Node.js (npm)\n- sst\n  - Automatically installed with `npx sst ...` command\n\n## Setup\n\n```\nnpm i\nsudo npx sst tunnel install\n```\n\n`npx sst tunnel install` is a script that installs the network interface needed to tunnel to an RDS within a VPC. Therefore, `sudo` is required.\n\n### Migration\n\nFirst, create a tunnel.\n```\nnpx sst tunnel\n```\n\nIn another tab\n\n```\nnpm run db generate\nnpm run db migrate\n```\n\n## Start dev mode\n\n```\nnpm run sst:dev\n```\n\nYou can view the output at http://localhost:3000.\nAdditionally, you can use Drizzle Studio at https://local.drizzle.studio.\n\n## Deploy\n\n```\nnpx sst tunnel --stage production\n```\n\nIn another tab\n\n```\nsudo npx sst shell drizzle-kit migrate --stage production\nnpm run sst:deploy\n```\n\n## See more\n\nhttps://sst.dev/docs/start/aws/drizzle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurinx%2Fnext-sst-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurinx%2Fnext-sst-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurinx%2Fnext-sst-pg/lists"}