8000 GitHub - Augani/zART: 🀯 zART-stack β€” Zero-API, React [Native], & TypeScript
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Augani/zART

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

zART-Stack 🀯

Zero-API, React, & TypeScript

⚑️ Probably the fastest way to build a React Native app with your own backend ⚑️

Introduction

A monorepo containing:

  • Next.js web app
  • React Native app with Expo
  • A tRPC-API that is inferred straight into the above.

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).

Video

Very rough video recorded in 2 minutes πŸ˜…

ZART

Getting started

git clone git@github.com:KATT/zart.git
cd zart
yarn
yarn dev

Press i after yarn dev in to launch the iOS Simulator.

Now - head over to one of the ./apps, whilist updating a router in tRPC or the Database Schema and see that the data is directly inferred.

Available commands

Command Description
yarn dev Starts Postgres, Expo & Next.js
yarn db-up Starts Postgres on port 5466
yarn db-migrate-dev Runs the latest Database migrations after updating the Prisma schema
yarn db-nuke Kills the database

Folder structure

.
β”œβ”€β”€ apps
β”‚   β”œβ”€β”€ expo    # Expo/RN application
β”‚   └── nextjs  # Server-side rendered Next.js application
β”œβ”€β”€ packages
β”‚   β”œβ”€β”€ api           # tRPC API 
β”‚   β”œβ”€β”€ react         # Shared React-helpers
β”‚   └── react-native  # RN components. **Could** be shared between Expo & Next.js if you're in to that sort of thing.
└── prisma      # Prisma setup

Further reading

Deployment

  • Create a Postgres Database
  • Set env DATABASE_URL pointing towards that db

Questions?

Shoot me a message on Twitter!

Credits

About

🀯 zART-stack β€” Zero-API, React [Native], & TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.7%
  • JavaScript 14.0%
  • Shell 2.3%
0