Follow these steps to get your todo app running:
npm install# Install Convex CLI globally
npm install -g convex
# Initialize Convex (this will prompt you to login/signup)
npx convex devThis will:
- Open Convex dashboard in your browser
- Create a new project
- Generate
.env.localwith your deployment URL - Start the Convex development server
- Go to dashboard.convex.dev
- Create a new project
- Copy your deployment URL
- Create
.env.localfile:EXPO_PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud - Run
npx convex devto push schema and functions
In a new terminal window:
npm startChoose your platform:
- Install "Expo Go" app on your phone
- Scan the QR code shown in terminal
npm run iosnpm run androidnpm run web- Run
npm installagain - Make sure all dependencies installed correctly
- Check that
.env.localexists with correct URL - Make sure
npx convex devis running - Restart expo server:
npx expo start -c
# Clear cache and restart
npx expo start -ccd ios && pod install && cd ..
npm run iosOnce running:
- Try adding a todo
- Toggle completion status
- Swipe left to delete
- Long press to edit
- Test the filters (All/Active/Completed)
- Keep
npx convex devrunning in one terminal - Run
npm startin another terminal - Use
rin Expo terminal to reload - Use
mto toggle menu - Use
shift+mto select device/simulator
Enjoy building! 🚀