I finally found out how to do it!
But I must say that Shopify could have made it a lot easier by providing some examples.
An app needs 3 things the most, how to authenticate, getting payed for the app and how it works when someone deletes the app, and there is no examples of any.