Skip to content

Latest commit

 

History

History
60 lines (52 loc) · 1.94 KB

README.md

File metadata and controls

60 lines (52 loc) · 1.94 KB


My Hacker News

This is a simple hacker news iOS application for listing new stories.
The app is built with SwiftUI.
Data source for the project is from "https://github.com/HackerNews/API"

Table of Contents

Features:

  • Users can read news from the HackerNews application.
  • The app presents these stories to users in descending order.
  • It allows users to view the highest ranked articles.
  • The user can start the link associated with the article in the browser.

The main components

API to Get New Stories

API to fetch Item

Illustration

Demo

How to build the app

  • Open myhackernews.xcodeproj via XCode
  • Press the start button to build and run the app

How to Run Test

xcodebuild test  -scheme 'myhackernews' -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.0'

Related files in project.

  • ./myhackernewsTests/myhackernewsTests.swift
    • testFetchItem
    • testFetchItems
    • testFetchStories
  • ./myhackernewsUITests/myhackernewsUITests.swift
    • testLoadingItems
  • ./myhackernewsUITests/myhackernewsUITestsLaunchTests.swift
    • testLaunch