{"id":21467070,"url":"https://github.com/ekafyi/turso-vercel-functions-sample-api","last_synced_at":"2025-04-22T18:47:06.589Z","repository":{"id":205810182,"uuid":"715136692","full_name":"ekafyi/turso-vercel-functions-sample-api","owner":"ekafyi","description":"Sample REST API with Turso + Drizzle on Vercel Serverless Functions","archived":false,"fork":false,"pushed_at":"2023-11-06T15:12:04.000Z","size":54,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T17:41:30.394Z","etag":null,"topics":["drizzle","drizzle-orm","turso","vercel-serverless","vercel-serverless-functions"],"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/ekafyi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-06T14:51:02.000Z","updated_at":"2025-01-11T05:33:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"34a3510e-127e-4464-b505-d565b04a4d61","html_url":"https://github.com/ekafyi/turso-vercel-functions-sample-api","commit_stats":null,"previous_names":["ekafyi/turso-vercel-functions-sample-api"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekafyi%2Fturso-vercel-functions-sample-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekafyi%2Fturso-vercel-functions-sample-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekafyi%2Fturso-vercel-functions-sample-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekafyi%2Fturso-vercel-functions-sample-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekafyi","download_url":"https://codeload.github.com/ekafyi/turso-vercel-functions-sample-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250301303,"owners_count":21408144,"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","drizzle-orm","turso","vercel-serverless","vercel-serverless-functions"],"created_at":"2024-11-23T08:16:30.464Z","updated_at":"2025-04-22T18:47:06.571Z","avatar_url":"https://github.com/ekafyi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Turso](https://turso.tech) + [Drizzle](https://orm.drizzle.team) + [Vercel Serverless Functions](https://vercel.com/docs/functions/serverless-functions)\n\nFork of https://github.com/turso-extended/api-mug-store-api, using Vercel Serverless Functions instead of [Cloudflare Workers](https://developers.cloudflare.com/workers/)\n\nSee details in [original code](https://github.com/turso-extended/api-mug-store-api).\n\n## Deploy to Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fekafyi%2turso-vercel-functions-sample-api)\n\nUse the one-click deploy above OR setup locally from CLI:\n\n1. Install [Vercel CLI](https://vercel.com/docs/cli)\n2. Run `vercel`\tin the project directory; follow the instructions to create a new Vercel project\n\nAdd your Turso credentials to [Vercel project env variables](https://vercel.com/docs/projects/environment-variables)\n\nDocs: https://vercel.com/docs/deployments/overview\n\n## Example\n\nPOST /api/mugs\n\n```sh\ncurl --request POST \\\n  --url http://localhost:3000/api/mugs \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"name\": \"Lorem Mug\",\n  \"description\": \"Consectetur sunt culpa reprehenderit voluptate pariatur nulla esse fugiat ipsum\",\n  \"price\": 1.23,\n  \"category_id\": \"aab5c2dd-1141-4f71-bdc2-c6344f52e174\"\n}'\n```\n\nDELETE /api/mugs/:id\n\n```sh\ncurl --request DELETE \\\n  --url http://localhost:3000/api/mugs/REPLACE_WITH_MUG_ID \\\n  --header 'Content-Type: application/json' \\\n  --data '{}'\n```\n\nReplace `http://localhost:3000` with your base URL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekafyi%2Fturso-vercel-functions-sample-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekafyi%2Fturso-vercel-functions-sample-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekafyi%2Fturso-vercel-functions-sample-api/lists"}