Skip to content

🍎 πŸ“ˆ The CrypTraces application is a MacOS Crypto Tracker Widget built with SwiftUI, Combine & Cocoa Framework, and WebSocket & CoinCap API. It displays various cryptocurrencies such as Bitcoin (BTC), Ethereum (ETH), Dogecoin (DOGE), Monero (XMR), and Litecoin (LTC). πŸ’» πŸͺ™

License

Notifications You must be signed in to change notification settings

dekapd99/CrypTraces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CrypTraces

Aplikasi CrypTraces adalah MacOS Widget Crypto Tracker dengan SwiftUI, Combine & Cocoa-Pods Framework, dan WebSocket & CoinCap API. Aplikasi ini berbentuk Widget di Menu Bar MacOS dengan menampilkan beberapa Crypto Currency seperti Bitcoin (BTC), Ethereum (ETH), Dogecoin (DOGE), Monero (XMR), dan Litecoin (LTC).

Preview

Folder & File Structure

Berikut struktur file dan folder pada CrypTraces:

.
β”œβ”€β”€ CrypTraces.swift                 # Root Project: Main App dengan Base Empty View di MacOS App
β”œβ”€β”€ Info.plist                       # Network - Enable Internet Access in Xcode for macOS App
β”œβ”€β”€ AppDelegate.swift                # Berisikan Fungsi App Launch Handler
β”œβ”€β”€ APIService                       # APIService: Fungsi API Service
β”‚   └── CoinCapPriceService.swift    # Berisikan Fungsi API Connection, Network Monitoring, (Receive, Record, & Convert Data), Ping Scheduler
β”‚
β”œβ”€β”€ Model                            # Model: Deklarasi Data Coin & CoinType
β”‚   β”œβ”€β”€ Coin.swift                   # Berisikan Deklarasi Data Representation dari Coincap & Websocket (name & value)
β”‚   └── CoinType.swift               # Berisikan Deklarasi Data Coin-coin Crypto Currency
β”‚
β”œβ”€β”€ View                             # View: Tampilan Frontend Widget
β”‚   β”œβ”€β”€ MenuBarCoinView.swift        # Berisikan Tampilan Frontend Menu Bar Widget
β”‚   └── PopoverCoinView.swift        # Berisikan Tampilan Frontend Popup
β”‚
└── ViewModel                        # ViewModel: Fungsi Realtime Update Data (Coin Prices)
    β”œβ”€β”€ MenuBarCoinViewModel.swift   # Berisikan Fungsi Update Data Coin Value (Prices) di Menu Bar dengan Combine Subscriber 
    └── PopoverCoinViewModel.swift   # Berisikan Fungsi Update Data Coin Value (Prices) di Popover dengan Combine Subscriber

Features:

  • Realtime Crypto Currency Tracker
  • Ping Scheduler
  • CoinCap & WebSocket API
  • Menu Bar MacOS Widget
  • Cocoa & Combine Framework
  • Network Monitoring (NWPathMonitor)

Build With:

Installation

Untuk menggunakan repositori ini, ikutilah petunjuk penggunaan berikut dan pastikan git sudah terinstall pada komputer (semua perintah dilaksanakan pada cmd.exe atau terminal):

  1. Lakukan download .zip atau clone repositori dengan cara:
git clone https://github.com/dekapd99/CrypTraces.git
  1. Jika sudah silahkan buka Project di Xcode.
  2. Pastikan hal ini: Buka info.plist dan cek Enable Internet Access in Xcode for macOS App: Klik Project CrypTraces > Signing & Capabilities > App Sandbox (Checklist Network: Outgoing Connections (client))
  3. Build & Run

License

MIT License: Copyright (c) 2022 DK

(back to top)

About

🍎 πŸ“ˆ The CrypTraces application is a MacOS Crypto Tracker Widget built with SwiftUI, Combine & Cocoa Framework, and WebSocket & CoinCap API. It displays various cryptocurrencies such as Bitcoin (BTC), Ethereum (ETH), Dogecoin (DOGE), Monero (XMR), and Litecoin (LTC). πŸ’» πŸͺ™

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages