Skip to content

A simple hacker news client (Coding Quest from Woven Planet)

Notifications You must be signed in to change notification settings

binghuan/MyHackerNews

Repository files navigation


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

About

A simple hacker news client (Coding Quest from Woven Planet)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages