You have to have Ionic 2, Cordova, and NPM installed on your machine.
Clone git repo
Start terminal and cd into the folder
do npm install
Go to src/assets
Create an auth.ts file with the class name MastodonCredentials
Get you redirect_uri, client_id and client_secret and assign them to variables in that class
Now save that file and go back to terminal
Do ionic serve. This should start the application thru localhost. If there's a new browser tab displaying the TootyFruity welocme screen, you are almost done!
Now ionic state restore
The application should be ready to add platforms. Look up the ionic add platform command and choose your OS
To start the application thru an emulator enter ionic run ios or ionic run android (You may have to create a android emulator thru android studio)
请发表评论