{"id":13469552,"url":"https://github.com/trpc/zart","last_synced_at":"2025-03-26T07:30:44.496Z","repository":{"id":38838541,"uuid":"404896721","full_name":"trpc/zart","owner":"trpc","description":"🤯  zART-stack — Zero-API, React [Native], \u0026 TypeScript","archived":true,"fork":false,"pushed_at":"2022-09-28T17:26:01.000Z","size":476,"stargazers_count":700,"open_issues_count":3,"forks_count":36,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-08-01T15:19:43.236Z","etag":null,"topics":["android","expo","ios","react","trpc"],"latest_commit_sha":null,"homepage":"https://twitter.com/alexdotjs","language":"TypeScript","has_issues":false,"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/trpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"KATT"}},"created_at":"2021-09-09T23:23:51.000Z","updated_at":"2024-08-01T09:37:39.000Z","dependencies_parsed_at":"2022-07-11T13:39:32.022Z","dependency_job_id":null,"html_url":"https://github.com/trpc/zart","commit_stats":null,"previous_names":["katt/zart"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fzart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fzart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fzart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fzart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trpc","download_url":"https://codeload.github.com/trpc/zart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222121829,"owners_count":16934973,"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":["android","expo","ios","react","trpc"],"created_at":"2024-07-31T15:01:44.540Z","updated_at":"2024-10-29T22:31:19.789Z","avatar_url":"https://github.com/trpc.png","language":"TypeScript","funding_links":["https://github.com/sponsors/KATT"],"categories":["TypeScript","android"],"sub_categories":[],"readme":"ℹ️ℹ️ℹ️ This example project is not actively maintained and is using an old version (v9) of tRPC ℹ️ℹ️ℹ️\n\nIf you're looking for alternatives, have a look at https://github.com/t3-oss/create-t3-turbo and other reference projects on https://trpc.io/docs/awesome-trpc\n\n\n---\n\n\n# zART-Stack 🤯\n\n\u003e **Z**ero-**A**PI, **R**eact, \u0026 **T**ypeScript\n\n**⚡️ Probably the fastest way to build a React Native app with your own backend ⚡️**\n\n## Introduction\n\nA monorepo containing:\n\n- Next.js web app\n- React Native app with Expo\n- A [tRPC](https://trpc.io)-API which is inferred straight into the above.\n- [Prisma](http://prisma.io/) as a typesafe ORM\n\n\u003e In tRPC you simply write API-functions that are automatically inferred straight into your frontend - no matter if it's React, React Native, or something else _(that is TS/JS-based)_.\n\n### Video\n\n\u003e Very rough video recorded in 2 minutes 😅\n\n[![ZART](http://img.youtube.com/vi/dLLm6hgMhMQ/0.jpg)](http://www.youtube.com/watch?v=dLLm6hgMhMQ \"Video Title\")\n\n## Requirements\n\nYou will need docker compose to run the postgres database.\nIt comes with the [Docker Desktop App](https://docs.docker.com/get-docker/)\n\n## Getting started\n\n```bash\ngit clone git@github.com:KATT/zart.git\ncd zart\nyarn\nyarn dev\n```\n\n\u003e Press `i` after `yarn dev` in to launch the iOS Simulator.\n\nNow - head over to one of the [`./apps`](./apps), whilist updating [a router in tRPC](./packages/api/src/routers) or the [Database Schema](./prisma/schema.prisma) and see that the data is directly inferred.\n\n## Available commands\n\n| Command               | Description                                                                                    |\n| --------------------- | ---------------------------------------------------------------------------------------------- |\n| `yarn dev`            | Starts Postgres, Expo \u0026 Next.js                                                                |\n| `yarn db-up`          | Starts Postgres on port `5466`                                                                 |\n| `yarn db-migrate-dev` | Runs the latest Database migrations after updating the [Prisma schema](./prisma/schema.prisma) |\n| `yarn db-nuke`        | Stops and deletes the the database                                                             |\n\n\n## Folder structure\n\n\n```graphql\n.\n├── apps\n│   ├── expo    # Expo/RN application\n│   └── nextjs  # Server-side rendered Next.js application\n├── packages\n│   ├── api           # tRPC API \n│   ├── react         # Shared React-helpers\n│   └── react-native  # RN components. **Could** be shared between Expo \u0026 Next.js if you're in to that sort of thing.\n└── prisma      # Prisma setup\n```\n\n## Further reading\n\n### Deployment\n\n#### Vercel\n\n- Create a Postgres Database\n- Set env `DATABASE_URL` pointing towards that db\n- Configure *\"Root Directory\"* as `apps/nextjs` and tick _Include source files outside of the Root Directory in the Build Step_.\n\n\n### Questions?\n\nShoot me a message [on Twitter](https://twitter.com/alexdotjs)!\n\n\n## Credits\n\n- tRPC and this example is made by [@alexdotjs](https://twitter.com/alexdotjs)\n- `apps/expo` is basically a copy-paste from [`expo-next-monorepo-example`](https://github.com/axeldelafosse/expo-next-monorepo-example) by [axeldelafosse](https://github.com/axeldelafosse).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrpc%2Fzart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrpc%2Fzart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrpc%2Fzart/lists"}