Skip to content

About

A React Native mobile application built with Expo and TypeScript, that acts as a user interface for the project-wotd backend.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Project WOTD Mobile

TypeScript React Native Expo React Query

A modern mobile application built with React Native and Expo, that acts as a user interface for the project-wotd-backend.

📋 Table of Contents

📋 Prerequisites

  • Node.js LTS 22 (v22.x)
  • Expo CLI
  • iOS Simulator (for Mac) or Android Studio (for Android development)
  • Physical device for testing (optional)

🔧 Development

  1. 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
  2. Install Expo CLI:

    npm install -g expo-cli
  3. Clone the repository:

    git clone https://github.com/ezratweaver/project-wotd-mobile
    cd project-wotd-mobile
  4. Install dependencies:

    npm install
  5. Set up environment variables:

    cp example.env .env

    Edit the .env file with your configuration values.

  6. Start the development server:

    # Start with Expo
    npm start
    
    # Or use tunnel for testing on physical devices
    npm run tunnel

🔄 Generating Types

To generate TypeScript types from the backend's Swagger documentation:

# Make sure the backend is running on localhost:3000
npm run swagger:generate

This will:

  1. Fetch the Swagger JSON from the backend
  2. Generate TypeScript types and API client code
  3. Place the generated files in the swagger directory

🏗️ Building for Production

Before building for production, ensure you have:

  1. An Expo account
  2. EAS CLI installed (npm install -g eas-cli)
  3. 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

About

A React Native mobile application built with Expo and TypeScript, that acts as a user interface for the project-wotd backend.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages