{"id":26475755,"url":"https://github.com/dnnsoftware/dnn.platform.samples.mobile","last_synced_at":"2025-03-19T23:45:06.799Z","repository":{"id":85821132,"uuid":"48857210","full_name":"dnnsoftware/Dnn.Platform.Samples.Mobile","owner":"dnnsoftware","description":"Sample Mobile Apps to access DNN Platform Web APIs","archived":false,"fork":false,"pushed_at":"2017-03-06T03:07:11.000Z","size":830,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-11-18T05:38:34.257Z","etag":null,"topics":["dnn","dnn-platform","dnncms","dotnetnuke"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnnsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-31T17:33:59.000Z","updated_at":"2024-03-16T14:56:55.000Z","dependencies_parsed_at":"2023-03-13T06:53:52.690Z","dependency_job_id":null,"html_url":"https://github.com/dnnsoftware/Dnn.Platform.Samples.Mobile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnsoftware%2FDnn.Platform.Samples.Mobile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnsoftware%2FDnn.Platform.Samples.Mobile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnsoftware%2FDnn.Platform.Samples.Mobile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnnsoftware%2FDnn.Platform.Samples.Mobile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnnsoftware","download_url":"https://codeload.github.com/dnnsoftware/Dnn.Platform.Samples.Mobile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244525553,"owners_count":20466543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dnn","dnn-platform","dnncms","dotnetnuke"],"created_at":"2025-03-19T23:45:06.242Z","updated_at":"2025-03-19T23:45:06.789Z","avatar_url":"https://github.com/dnnsoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dnn.Platform.Samples.Mobile\nSample Mobile Apps to access DNN Platform Web APIs\n\n#Telerik App\nWe will be using Telerik’s App Builder platform in order to create a sample hybrid app that provides a simple UI that prints out data returned from an external API request using Monikers \u0026 JWT for validation.\n\n#Telerik App Pre-requisites\n  1.)\tTelerik Account – for the app builder, 30 day free trial\n  \n  2.)\tClean copy of latest Platform build (as long as JWT is active)\n  \n  3.)\tSPA Sample Module on local platform build\n  \n  4.)\tSmartphone / tablet / local machine to test with after building project (optional)\n\n#Steps:\n  1.)\tSign up for Telerik Platform on their 30 day free trial (no credit card required)\n  \n  2.)\tSetup telerik workspace – go through tutorials or straight into it\n  \n  3.)\tInstall \u0026 configure JWT on local platform build\n  \n    a.\tGo to web config file.\n    \n    b.\tModify this line:\n    \n      \u003cadd name=\"JWTAuth\" type=\"Dnn.AuthServices.Jwt.Auth.JwtAuthMessageHandler, Dnn.AuthServices.Jwt\" enabled=\"true\" defaultInclude=\"false\" forceSSL=\"false\" /\u003e\n    \n    Set defaultInclude to true – this allows JWT to be activated in all of DNN’s web API’s.\n    Set forceSSL to false – not all API’s support SSL, so we want to turn this off.\n    \n    *Note*: If testing via web based emulator instead of app – add these lines to web.config (around line 118) – this is to allow CORS (cross origin resource sharing) **THIS IS A SECURITY RISK\n    Under this line - \u003cremove name=\"X-Powered-By\" /\u003e\n    \n      \u003cadd name=\"Access-Control-Allow-Origin\" value=\"*\" /\u003e\n      \u003cadd name=\"Access-Control-Allow-Headers\" value=\"accept, accept-language, content-type, accept, authorization, moduleid, tabid, x-dnn-moniker\" /\u003e\n      \u003cadd name=\"Access-Control-Allow-Methods\" value=\"GET, POST, PUT, HEAD, OPTIONS\" /\u003e\n  \n  4.)\tInstall SPA module on local build. Obtain the SPA module from here: https://github.com/dnnsoftware/Dnn.Platform.Samples.Mvc/tree/master/Website/Install/Module. There are 2 install packages here. Install the latest version of *SPA*, e.g. DNN_ContactList_SPA_01.00.00_Install.zip\n  \n    a.\tPlace on sample page\n    \n    b.\tCreate a record or two\n    \n    c.\tGive it a moniker under module settings -\u003e advanced\n    \n    d.\tGive it the moniker “spamodulesample”\n  \n  5.)\tConnect mobile app to local build by calling APIs using jQuery AJAX\n  \n    a.\tGrab code from Sample App – index.html, main.css, contacts.js \u0026 app.js\n    \n    b.\tSet up IIS bindings to allow local testing\n    \n    c.\tIf testing on app, you want to set up the IP address binding as well.\n    \n    d.\tLogin using url set up in IIS and see if API’s are accessed correctly\n  \n  6.)\tEmulate / download app to test.\n\nNOTE: You can also download the app on mobile phones by going into Run -\u003e Build and this will download the app package. Alternatively, you can download the telerik app builder app to download the app directly using their QR scanner.\n\n![Build Menu](https://raw.githubusercontent.com/dnnsoftware/Dnn.Platform.Samples.Mobile/master/images/build.png)\n![Platform Options](https://raw.githubusercontent.com/dnnsoftware/Dnn.Platform.Samples.Mobile/master/images/platform.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnnsoftware%2Fdnn.platform.samples.mobile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnnsoftware%2Fdnn.platform.samples.mobile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnnsoftware%2Fdnn.platform.samples.mobile/lists"}