A β¨ full-stack mobile To-Do app β¨ built with React Native, GraphQL, Apollo, PostgreSQL, and more! It's fast, clean, and developer-friendly β perfect for learning or launching π.
- βοΈ React Native
0.79.4
- π Expo SDK
53
- π Apollo Client
- π NativeWind (TailwindCSS for RN)
- π Reanimated for slick animations
- π§± GlueStack UI (optional)
- π’ Node.js + Express
- π‘ Apollo Server
- π GraphQL (Schema + Resolvers)
- π Prisma ORM
- π’οΈ PostgreSQL
react-native-graphql-app/
βββ frontend/ # π± Mobile client
β βββ App.js
β βββ apollo/ # Apollo config
β βββ components/ # Reusable UI
βββ server/ # π§ Node GraphQL API
β βββ src/
β βββ prisma/ # DB schema & migrations
βββ README.md
git clone https://github.com/dmunasingha/react-native-graphql-app.git
cd react-native-graphql-app
cd server
cp .env.example .env
npm install
npx prisma migrate dev --name init
npm run dev
π GraphQL Playground: http://localhost:4000/graphql
cd ../frontend
npm install
npm start
π‘ Tip: Use Expo Go or an emulator for testing
β οΈ Important: Update Apollo client URI inapollo/client.js
:
uri: 'http://192.168.x.x:4000/graphql' // π Use your LAN IP
- β Add / Toggle / Delete todos
- π Auto refetch with Apollo
- β¨ Beautiful styling with Tailwind
- π² Cross-platform (iOS/Android)
- π Prisma-backed DB
- β±οΈ Coming Soon: Offline mode
- π Coming Soon: Dark mode
π List View | π οΈ Mutation Example |
---|---|
Coming soon | Coming soon |
- π§Ή Clear Metro cache:
npx expo start -c
- 𧬠Test GraphQL at:
http://localhost:4000/graphql
- π§βπ¬ Use
npx prisma studio
to view data
- β Network request failed: Use your real IP, not
localhost
- β Unknown type "ID": Match GraphQL types (use
Int!
if Prisma expects it) - β Metro error: All
import
statements must be at the top level
πͺͺ Licensed under the 0BSD license β totally open and flexible π
- π Apollo GraphQL
- 𧬠Prisma
- π¦ Expo
- π¨ GlueStack UI
Made with β€οΈ by Dunith Munasingha π§ munasingha.dunith@gmail.com(mailto:munasingha.dunith@gmail.com) π https://www.linkedin.com/in/dunith-munasingha/