🌟 Give this repo a star and help its development grow! 🌟
DevBoard
The console is great for logging and keeping track of whats going on in your app, whether you do logging in Xcode in the Terminal.app or the Console.app. But all that logging is sometimes and often just too much 🤯🤦♂️, and you easily loose important information.
Here comes DevBoard to the rescue!
With DevBoard you can keep track of exactly what you want and see exactly only that! BOOM! Elevator pitch nailed it!
How It Works
Short Story
You run the built-in macOS PHP server.
You send parameters from your app to a page on the server, which then saves those parameters to a JSON file.
That JSON file with those parameters are displayed in another web page.
Long Story
In the www folder double click Run_DevBoard_Server.command to run it, this will start the built-in macOS PHP server on localhost:8888 and use the root directory of the command file.
Then the two web pages in the www folder will be opened DevBoardReceiver.php and DevBoardViewer.php.
The DevBoardReceiver.php page will first launch with example parameters, which will be saved to the DevBoard_Log.json file.
The DevBoardViewer.php page will read the JSON file and display those parameters.
You can now start using DevBoard in your app.
Please see the provided DevBoardExampleApp for Swift.
Swift Story
// init
let devBoard = DevBoard(host:"http://localhost:8888",
autoUpdateTimeInterval:2,
ignoreAllOperations:false)
// set a parameter
devBoard.setParameter(atIndex:0, key:"Button Tapped",
value:"Green Button", color:"#00FF00",
actions:[])
// manually send update to server
devBoard.sendUpdate()
// At this point… watch your web browser for an update :-)
// if you prefer to use auto updates, subscribe to DevBoard
var devBoardSubscriber = devBoard.sink
{
devBoard in
devBoard.setParameter(atIndex:1, key:"Date/Time",
value:Date().description, color:"cyan",
actions:[])
}
Setting a Parameter
Index: At which index the key/value should be positioned i.e. sort order.
Actions: 1 = Apply blinking animation to key-value.
Requirements
Swift 5.1.x
Xcode 11.x
Combine framework
How to Install
DevBoard has a plain & simple distibution, simply add the DevBoard.swift to your project.
🌟 Give this repo a star and help its development grow! 🌟
DevBoard
The console is great for logging and keeping track of whats going on in your app, whether you do logging in Xcode in the Terminal.app or the Console.app. But all that logging is sometimes and often just too much 🤯🤦♂️, and you easily loose important information.
Here comes DevBoard to the rescue!
With DevBoard you can keep track of exactly what you want and see exactly only that! BOOM! Elevator pitch nailed it!
How It Works
Short Story
Long Story
In the
www
folder double clickRun_DevBoard_Server.command
to run it, this will start the built-in macOS PHP server onlocalhost:8888
and use the root directory of the command file.Then the two web pages in the
www
folder will be openedDevBoardReceiver.php
andDevBoardViewer.php
.The
DevBoardReceiver.php
page will first launch with example parameters, which will be saved to theDevBoard_Log.json
file.The
DevBoardViewer.php
page will read the JSON file and display those parameters.You can now start using DevBoard in your app.
Please see the provided
DevBoardExampleApp
for Swift.Swift Story
Setting a Parameter
Requirements
How to Install
DevBoard has a plain & simple distibution, simply add the
DevBoard.swift
to your project.git clone https://github.com/MKGitHub/DevBoard.git
.github "MKGitHub/DevBoard"
.Roadmap
Pull Requests
Currently not accepting any random pull requests, please create an issue first where a discussion can take place.
Notes
https://github.com/MKGitHub/DevBoard
Copyright 2019-2020 Mohsan Khan
Licensed under the Apache License, Version 2.0