Skip to content

MarkCodable/MarkCodableDemoApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarkCodingDemoApp

This is a demo app that showcases a simple dynamic affiliate store app for iPhone built in about 70 lines of code with a backend driven by a single Markdown file.

The MarkCoding persistence format revolves around it being plain text easily editable by humans. This repo showcases a simple setup for an affiliate iPhone app store:

  • GitHub hosts a Markdown file with products, editable online.
  • An iOS app that fetches the file and displays the products.
  • Amazon fulfills any purchases and tracks affiliate fees.

GitHub takes care of hosting, file versioning, access permissions, and more:

https://github.com/icanzilb/MarkCodingDemoApp/blob/main/books.md

The Swift code fetches the Markdown from GitHub and decodes the products with a single MarkDecoder.decode(...) call to display a list of products:

Finally, when the user taps one of the products they are sent to the product detail page on Amazon:

Clone the repo and give the app a try!

Credits

MIT License, Marin Todorov (2022)

@icanzilb on Twitter

About

An app showcasing how to use markdown as an app backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages