{"id":25939089,"url":"https://github.com/jphlpl/nextjs-fastapi-supa","last_synced_at":"2026-03-05T08:30:57.833Z","repository":{"id":280538494,"uuid":"942329821","full_name":"JPhlpL/nextjs-fastapi-supa","owner":"JPhlpL","description":"This is NextJS v14 using App Router and FastAPI for endpoint. For ORM I use Drizzle and Supabase for DB. Special thanks to @markhuz1925 for NextJS Concept :)","archived":false,"fork":false,"pushed_at":"2025-03-04T00:43:42.000Z","size":9759,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T01:28:27.827Z","etag":null,"topics":["drizzle-orm","fastapi","nextjs","python","sqlalchemy"],"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/JPhlpL.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":"2025-03-04T00:03:58.000Z","updated_at":"2025-03-04T00:43:46.000Z","dependencies_parsed_at":"2025-03-04T01:38:39.579Z","dependency_job_id":null,"html_url":"https://github.com/JPhlpL/nextjs-fastapi-supa","commit_stats":null,"previous_names":["jphlpl/nextjs-fastapi-supa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPhlpL%2Fnextjs-fastapi-supa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPhlpL%2Fnextjs-fastapi-supa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPhlpL%2Fnextjs-fastapi-supa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JPhlpL%2Fnextjs-fastapi-supa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JPhlpL","download_url":"https://codeload.github.com/JPhlpL/nextjs-fastapi-supa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780495,"owners_count":20019061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["drizzle-orm","fastapi","nextjs","python","sqlalchemy"],"created_at":"2025-03-04T04:15:41.779Z","updated_at":"2026-03-05T08:30:57.787Z","avatar_url":"https://github.com/JPhlpL.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Current Stacks That Used:\n\n- NextJS (v14) - FrontEnd\n  - Drizzle (ORM)\n  - Shadcn (UI Component)\n  - lucide-react (Icons)\n  - Tailwind CSS (CSS)\n  - App Router (Page Pattern)\n  - Typescript (Types)\n  - Vercel (Hosting)\n  - eslint (Linting)\n\n- FastAPI - BackEnd\n  - Modal (Container)\n  - SQLAlchemy (For ORM)\n  - mypy (Linting)\n  - Pattern (router-\u003eservice-\u003erepository)\n  - Logfire (For Logging)\n  - Pydantic (Data Models)\n\n- Supabase - Database\n  - PostgreSQL\n  - Session Tokens\n  - Login/Signup OAuth\n    - Github\n    - Google\n    - Azure/Microsoft\n    - Linkedin\n    - Facebook\n    - Twitter\n  \n- CI/CD Utilities\n  - Github (Repository)\n    - Pull Request\n    - Protect Branch\n    - Github Actions\n  - Git (Version Control)\n  - Figma/Draw.io\n  - Postman API (API Testing)\n\n## Front-End ( ReactJS / NextJS):\n\nThis is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).\n\n## Getting Started\n\nFirst, install all packages:\n\n```bash\nnpm i\n```\n\nThen, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.\n\n## Generate JWT Secret\nnode -e \"console.log(require('crypto').randomBytes(64).toString('hex'))\"\n\n## Vercel Deployment\nCOMING SOON...\n\n## Backend (Python / FastAPI):\n\nTutorial:\n`\nhttps://www.youtube.com/watch?v=f3CyAmelnEY\u0026list=PLqAmigZvYxIL9dnYeZEhMoHcoP4zop8-p\u0026index=3\n`\n\nFor Installation of libraries:\n`\npip install -r requirements.txt\n`\n\nTo export libraries\n`\npip freeze \u003e requirements.txt\n`\n\n## MODAL CONTAINER (modal.com)\n\nFIRST SETUP:\n- make sure installed modal on python\n- run python -m modal setup\n\nCONTAINER INTIALIZATION:\n- Go to Workspace Settings\n- Go to API Tokens\n- Create New Token\n- modal token set --token-id \u003ctoken_id\u003e --token-secret \u003ctoken_secret\u003e --profile=\u003cworkspace_name\u003e\n- modal profile activate \u003cworkspace_name\u003e\n\n## TO SERVE IN MODAL CONTAINER (For local testing purposes)\n`\nmodal config set-environment development\n`\n\n`\nmodal serve src.main\n`\n\n## TO DEPLOY ON PROD (MAIN)\n\n`\nmodal config set-environment main\n`\n\n`\nmodal deploy src.main --tag $(GIT_HASH)  ($(GIT_HASH) or the manual value of git rev-parse HEAD)\n`\n\n## Supabase (PostgreSQL)\n\nPS: Make sure that you have currently setup supabase project\n\n## Walkthrough:\n1. Make sure that you correctly setup the schema.ts\n2. nvm use 20.12\n3. npx drizzle-kit generate\n4. npx drizzle-kit push\n5. Go to `supabase.com`\n6. Go to table editor\n7. Verify if your drizzle migrates to your supabase\n8. Make sure that you run also all migrations (/migrations/*.sql) to setup a trigger and function\n\n## Authentication Setup:\nCOMING SOON...\n\n## Steps on how to setup whole project:\nCOMING SOON...\n\n## Some Screenshots:\n![image](https://github.com/user-attachments/assets/dec75b5b-4f8a-4a16-a377-88679a655922)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphlpl%2Fnextjs-fastapi-supa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjphlpl%2Fnextjs-fastapi-supa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphlpl%2Fnextjs-fastapi-supa/lists"}