{"id":23678134,"url":"https://github.com/nithink-142/prisma-init","last_synced_at":"2026-05-08T01:39:51.172Z","repository":{"id":207327507,"uuid":"718718671","full_name":"nithinK-142/prisma-init","owner":"nithinK-142","description":"Prisma usage demo.","archived":false,"fork":false,"pushed_at":"2023-11-15T08:20:33.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T15:17:56.329Z","etag":null,"topics":["prisma","sqlite","typescript"],"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/nithinK-142.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}},"created_at":"2023-11-14T16:56:28.000Z","updated_at":"2023-11-15T16:57:15.000Z","dependencies_parsed_at":"2023-11-15T08:32:25.215Z","dependency_job_id":"9a8b401e-9dae-4b72-a19b-ce23fc1c8d76","html_url":"https://github.com/nithinK-142/prisma-init","commit_stats":null,"previous_names":["nithink-142/prisma-init"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fprisma-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fprisma-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fprisma-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nithinK-142%2Fprisma-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nithinK-142","download_url":"https://codeload.github.com/nithinK-142/prisma-init/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718329,"owners_count":19685722,"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":["prisma","sqlite","typescript"],"created_at":"2024-12-29T15:17:56.297Z","updated_at":"2025-12-28T03:30:14.044Z","avatar_url":"https://github.com/nithinK-142.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prisma init\n\nA simple demo of CRUD operations using Prisma and SQLite.\n\n### Prerequisites:\n\n1. **Database:** You need to have a database installed. The example uses SQLite also Postgres, MongoDB, etc can be used.\n\n2. **tsc (TypeScript Compiler):** Ensure that TypeScript and ts-node are installed globally or as project dependencies.\n\n### Dependencies:\n\n- **typescript:** The primary package for working with TypeScript.\n- **ts-node:** TypeScript execution and REPL for Node.js.\n- **@types/node:** TypeScript definition files for Node.js.\n- **prisma:** The Prisma ORM (Object-Relational Mapping) library.\n\n### Project Setup:\n\n1. **Initialize npm:**\n   ```sh\n   npm init -y\n   ```\n\n2. **Install Dependencies:**\n   ```sh\n   npm install typescript ts-node @types/node -D\n   ```\n\n3. **Initialize TypeScript Configuration:**\n   ```sh\n   npx tsc --init\n   ```\n\n4. **Install Prisma:**\n   ```sh\n   npm install prisma\n   ```\n\n### Prisma Initialization:\n\n- **Generate Prisma Configuration:**\n  ```sh\n  npx prisma --datasource-provider sqlite\n  ```\n  sqlite - database provider\n\n### Database Migration:\n\n- **Run Migrations after defining Models in schema.prisma:**\n  ```sh\n  npx prisma migrate dev --name init\n  ```\n  init - name of migration\n\n### Run TypeScript Code:\n\n- **Run index.ts:**\n  ```sh\n  npx ts-node index.ts\n  ```\n  PS - comment other functions while using the one you want.\n\n### Prisma Studio (GUI):\n\n- **Open Prisma Studio:**\n  ```sh\n  npx prisma studio\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnithink-142%2Fprisma-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnithink-142%2Fprisma-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnithink-142%2Fprisma-init/lists"}