https://github.com/dmunasingha/react-native-graphql-app
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 ๐.
https://github.com/dmunasingha/react-native-graphql-app
apollo express graphql nodejs postgreesql react-native
Last synced: 3 months ago
JSON representation
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 ๐.
- Host: GitHub
- URL: https://github.com/dmunasingha/react-native-graphql-app
- Owner: dmunasingha
- Created: 2025-06-27T09:50:02.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-06-27T10:43:25.000Z (12 months ago)
- Last Synced: 2025-06-27T11:40:55.597Z (12 months ago)
- Topics: apollo, express, graphql, nodejs, postgreesql, react-native
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐งฉ React Native GraphQL To-Do App
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 ๐.
---
## ๐ง Tech Stack Toolbox ๐งฐ
### ๐ผ๏ธ Frontend
* โ๏ธ React Native `0.79.4`
* ๐ Expo SDK `53`
* ๐ Apollo Client
* ๐
NativeWind (TailwindCSS for RN)
* ๐ญ Reanimated for slick animations
* ๐งฑ GlueStack UI (optional)
### ๐ Backend
* ๐ข Node.js + Express
* ๐ก Apollo Server
* ๐ GraphQL (Schema + Resolvers)
* ๐ Prisma ORM
* ๐ข๏ธ PostgreSQL
---
## ๐ Getting Started
### ๐๏ธ Folder Structure
```
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
```
---
## ๐ Quickstart Guide
### ๐ฅ 1. Clone the Repo
```bash
git clone https://github.com/dmunasingha/react-native-graphql-app.git
cd react-native-graphql-app
```
### ๐ง 2. Backend Setup
```bash
cd server
cp .env.example .env
npm install
npx prisma migrate dev --name init
npm run dev
```
๐ GraphQL Playground: `http://localhost:4000/graphql`
### ๐ฒ 3. Frontend Setup
```bash
cd ../frontend
npm install
npm start
```
๐ก Tip: Use Expo Go or an emulator for testing
> โ ๏ธ **Important:** Update Apollo client URI in `apollo/client.js`:
```js
uri: 'http://192.168.x.x:4000/graphql' // ๐ Use your LAN IP
```
---
## ๐ฏ Features Checklist
* โ
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
---
## ๐ธ Screenshots
| ๐ List View | ๐ ๏ธ Mutation Example |
| ------------- | -------------------- |
| *Coming soon* | *Coming soon* |
---
## ๐งช Dev Tips
* ๐งน Clear Metro cache: `npx expo start -c`
* ๐งฌ Test GraphQL at: `http://localhost:4000/graphql`
* ๐งโ๐ฌ Use `npx prisma studio` to view data
---
## ๐งจ Troubleshooting
* โ **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
---
## ๐ License
๐ชช Licensed under the **0BSD** license โ totally open and flexible ๐
---
## ๐ก Acknowledgements
* ๐ [Apollo GraphQL](https://www.apollographql.com/)
* ๐งฌ [Prisma](https://www.prisma.io/)
* ๐ฆ [Expo](https://expo.dev/)
* ๐จ [GlueStack UI](https://ui.gluestack.io/)
---
## ๐โโ๏ธ Contact
Made with โค๏ธ by Dunith Munasingha
๐ง munasingha.dunith@gmail.com(mailto:munasingha.dunith@gmail.com)
๐ https://www.linkedin.com/in/dunith-munasingha/