Skip to content

chinhngdev/DailyNews

Repository files navigation

DailyNews

The daily news reader for your Apple devices.

How to Build

1. Check out branch main

Clone or switch to the main branch of the repository:

git checkout main

2. Install SwiftGen via Homebrew

SwiftGen is required for code generation. Install it using Homebrew:

brew install swiftgen

3. Setup API Key

  1. Get your API key from NewsAPI.org

  2. Create and configure the API keys file:

    Create DailyNews/DailyNews/Data/Network/Base/APIKeys.swift with the following content:

    import Foundation
    
    struct APIKeys {
        static let newsAPIKey = "your_actual_api_key_here"  // ← Replace this
        static let newsAPIBaseURL = "https://newsapi.org/v2"
    }

    Note: APIKeys.swift is excluded from git commits for security.

That's it! All other configurations (base URL, timeout, etc.) are already set in the xcconfig files.

Prerequisites

  • Xcode (latest version recommended)
  • Homebrew package manager
  • Active internet connection for API access
  • NewsAPI.org account for API key

Next Steps

After completing the setup, you should be able to build and run the DailyNews app on your Apple devices or simulator.

About

The daily news reader for your Apple devices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages