{"id":18683562,"url":"https://github.com/scify/dianoia-app","last_synced_at":"2025-04-12T04:31:47.001Z","repository":{"id":21925738,"uuid":"92046926","full_name":"scify/Dianoia-app","owner":"scify","description":"Mobile (Ionic 3 - Angular 4) app about non-pharmaceutical activities and information for people with dementia.","archived":false,"fork":false,"pushed_at":"2025-02-16T08:21:41.000Z","size":42955,"stargazers_count":15,"open_issues_count":0,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-26T00:04:41.271Z","etag":null,"topics":["angular2","angular4","cordova","dementia","hacktoberfest","hybrid-apps","ionic","ionic2","ionic3","mobile-app","offline-app","offline-capable","offline-first","pharmaceutical-activities","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-05-22T11:38:52.000Z","updated_at":"2025-02-16T08:21:43.000Z","dependencies_parsed_at":"2023-01-12T01:30:19.277Z","dependency_job_id":"985a8d7a-3a1a-4e61-88be-ad5b60d8f8a5","html_url":"https://github.com/scify/Dianoia-app","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FDianoia-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FDianoia-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FDianoia-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FDianoia-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scify","download_url":"https://codeload.github.com/scify/Dianoia-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248517191,"owners_count":21117411,"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":["angular2","angular4","cordova","dementia","hacktoberfest","hybrid-apps","ionic","ionic2","ionic3","mobile-app","offline-app","offline-capable","offline-first","pharmaceutical-activities","typescript"],"created_at":"2024-11-07T10:14:56.927Z","updated_at":"2025-04-12T04:31:41.980Z","avatar_url":"https://github.com/scify.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Dianoia - Ionic Mobile app\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/scify/Dianoia-app/master/resources/splash.png\" width=\"500\"\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\nA demo of the app (in Greek) can be found [here](https://scify.github.io/Dianoia-app/#/home).\n\n## Non-pharmaceutical activities for people with dementia.\n\n## Pre-setup steps\n\nIt is very easy to install multiple versions of NodeJS and npm, by using [Node Version Manager (nvm)](https://github.com/creationix/nvm).\n\nThis project was built using the following versions of nodejs and npm:\n\n```bash\nnvm install lts/fermium # (or nvm install v14.21.1)\n\nnode -v\nv14.21.1\n\nnpm -v\n6.14.17\n```\n\nAlternatively, if you are using [`nvm`](https://github.com/nvm-sh/nvm), run this command in order to sync to the correct NodeJS version for the project:\n\n```bash\nnvm use\n```\n\n## Install project dependencies:\n\n```bash\n$ npm install -g @ionic/cli@6.11.11 \n\n$ npm install -g cordova@8.1.2\n\n$ cd dianoia-app\n\n$ npm install\n\n$ ionic serve\n```\n\n## Execution\nThen, to run it in a real Android device, cd into `dianoia-app` and run:\n\n```bash\n$ ionic cordova platform add android@8.1.0\n\n$ ionic cordova emulate android\n```\n\n## Generating icon and splash screen for all platforms\n\nUpdate the following files:\n\n`resources/icon.png`\n\nand\n\n`resources/splash.png`\n\nAnd then run\n\n```bash\n$ ionic cordova resources\n```\n\nTo generate the icon and splash screen files for all platforms and dimensions. For more info read [this page](https://ionicframework.com/docs/cli/commands/cordova-resources).\n\n## Building\n\n### How to change app version before building for release\n\nThe app has several places where the app version is defined. Change the following:\n\n1. In the `config.xml` file, change the `android-versionCode` parameter, as well as the `version` (`widget` tag).\n2. Change the `version` in `package.json` file.\n3. Change the `APP_VERSION` constant, defined in `src/consts.ts` file.\n\n### Building for Android\n\n#### Java - Gradle\nIn order to build for Android, Java `1.8` is required, along with Gradle `4.4.1`.\n\nVerify your installations by running:\n```bash\n$ java -version\n\n$ gradle -version\n```\n\nYou will need Java version `1.8` on your system. If you have multiple versions of Java installed, you will need to update the current one by running:\n\n```bash\n$ sudo update-alternatives --config java\n\n$ sudo update-alternatives --config javac\n```\nAnd selecting the correct one.\n\n#### Firebase Analytics\nSince the project uses Firebase Analytics, In order to build for Android you have to put the `google-services.json` file from Firebase Console to the root directory.\nThe build process will then copy this file to the `platforms/andorid/app` directory.\n\n### Creating the platform files\n\nIn order to build the android platform, you will need the correct version of the cordova-android plugin:\n\n```bash\n$ ionic cordova platform rm android\n\n$ ionic cordova platform add android@8.1.0\n```\n\n### Building the Android project\n\nYou will need to open the `platforms/android/CordovaLib/build.gradle` file and change the `repositories` in `buildscript`, in order to have this:\n\n```gradle\nbuildscript {\n    repositories {\n        mavenCentral()\n        google()\n        gradlePluginPortal()\n        jcenter()\n        maven { url \"https://repo.grails.org/grails/core/\" }\n    }\n    ...\n}\n```\n\nThen, you can build the Android project by running:\n\n```bash\n$ ionic cordova build android\n```\n\nThe `build` command will generate a full Android project, located in `platforms/android`. This project can then be opened in Android Studio, in order to build and produce the .aap (bundle) or the .apk files. \n\nIf you want to build a release version:\n\n```bash\n$ ionic cordova build android --release\n```\n### Signing the Android .apk\nAfter the android project is built, you can either use Android CLI commands, or just open Android Studio, and sign the .apk or .aap (bundle) file.\n\n## Build for Browser\n\nIn order to generate a bundled directory that can be hosted as a web application, you need to add and build the `browser` platform:\n\n```bash\n$ ionic cordova platform add browser@5.0.4\n\n$ ionic cordova build browser\n```\n\nIf you want to reset the browser platform:\n\nAutomated way:\n\n```bash\n$ npm run build-browser\n```\n\nManual way:\n\n```bash\n$ ionic cordova platform rm browser\n\n$ ionic cordova platform add browser@5.0.4\n\n$ ionic cordova build browser\n```\n\nThis will generate a `platforms/browser/www` directory that can be uploaded to a server.\n\n### GitHub pages\n\nIn order to generate the `docs` directory that can be used from GitHub Pages, you need to run the following script:\n\n```bash\n$ npm run build-docs\n```\n\nThis will generate the `docs` directory. (Note that this directory is and should be under Version Control).\n\n## License\n\n\u003cdiv\u003eIcons made by \u003ca href=\"http://www.freepik.com\" title=\"Freepik\"\u003eFreepik\u003c/a\u003e from \u003ca href=\"http://www.flaticon.com\" title=\"Flaticon\"\u003ewww.flaticon.com\u003c/a\u003e is licensed by \u003ca href=\"http://creativecommons.org/licenses/by/3.0/\" title=\"Creative Commons BY 3.0\" target=\"_blank\"\u003eCC 3.0 BY\u003c/a\u003e\u003c/div\u003e\n\n\u003cbr\u003e\nCopyright 2016\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n## Sponsors\nΤο project “Διάνοια” υλοποιείται από τη \u003ca href=\"http://www.scify.org/\"\u003eΜη Κερδοσκοπική Εταιρεία SciFY\u003c/a\u003e στο πλαίσιο του προγράμματος “Σημεία Στήριξης” που συγχρηματοδοτείται από το ΤΙΜΑ Κοινωφελές Ίδρυμα, το Κοινωφελές Ίδρυμα Ιωάννη Σ. Λάτση, τη φιλανθρωπική οργάνωση Hellenic Hope και το Ίδρυμα Μποδοσάκη.\n  \u003cbr\u003e\n  \u003cbr\u003e\n  Περισσότερες πληροφορίες για το έργο \u003ca href=\"http://www.scify.gr/site/el/impact-areas/assistive-technologies/dianoia\"\u003eσε αυτόν τον σύνδεσμο.\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fdianoia-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscify%2Fdianoia-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fdianoia-app/lists"}