mwarger / tmdb-watchlist-prisma-graphql-yoga-pothos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tmdb-watchlist-prisma-graphql-yoga-pothos

This app uses TMDB to retrieve a list of Now Playing movies. You can add/remove movies to track which ones you've watched. There's a "fake" auth flow as well to show navigation as well as GraphQL Yoga middleware.

Simple app that showcases the following technology.

Expo + GraphQL Yoga + Pothos + URQL + Prisma + NextJS + Nx + zod + react-hook-form + solito

Setup

Add your database and TMDB bearer token (instructions here) to the .env file. If you aren't using Postgres, make the appropriate changes to the Prisma schema.

If you use Postgres, we setup for you a docker image so you can start right away Run docker compose up to start the PostgreSQL database (Assuming you have the docker daemon installed)

Run yarn prisma:codegen and yarn prisma:migrate to setup the DB and generated client.

Run yarn graphql:codegen to generate the typed GraphQL client.

Running the App

Run the API

nx serve next-app

Run the App

nx run-ios mobile

Screenshots

About


Languages

Language:TypeScript 79.3%Language:CSS 12.4%Language:JavaScript 8.1%Language:Shell 0.1%