A modern mobile application built with React Native and Expo, that acts as a user interface for the project-wotd-backend.
- Node.js LTS 22 (v22.x)
- Expo CLI
- iOS Simulator (for Mac) or Android Studio (for Android development)
- Physical device for testing (optional)
-
Install and setup NVM (Node Version Manager):
# For Arch Linux (using yay) yay -S nvm # For Ubuntu/Debian curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash # For other Linux distributions, check your package manager or use the curl method above # Restart your terminal or source your shell config source ~/.bashrc # or source ~/.zshrc or source ~/.config/fish/config.fish # Install and use Node.js 22 nvm install 22 nvm use 22
-
Install Expo CLI:
npm install -g expo-cli
-
Clone the repository:
git clone https://github.com/ezratweaver/project-wotd-mobile cd project-wotd-mobile -
Install dependencies:
npm install
-
Set up environment variables:
cp example.env .env
Edit the
.envfile with your configuration values. -
Start the development server:
# Start with Expo npm start # Or use tunnel for testing on physical devices npm run tunnel
To generate TypeScript types from the backend's Swagger documentation:
# Make sure the backend is running on localhost:3000
npm run swagger:generateThis will:
- Fetch the Swagger JSON from the backend
- Generate TypeScript types and API client code
- Place the generated files in the
swaggerdirectory
Before building for production, ensure you have:
- An Expo account
- EAS CLI installed (
npm install -g eas-cli) - Updated environment variables for production profile in
eas.json
Build for production:
# Login to Expo
eas login
# Configure your build
eas build:configure
# Build for iOS
eas build --platform ios --profile production
# Build for Android
eas build --platform android --profile production