├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── city.png │ │ │ │ ├── camera.png │ │ │ │ ├── text_bubble_tx.xml │ │ │ │ ├── text_bubble_rx.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── strings.xml │ │ │ │ └── colors.xml │ │ │ ├── layout │ │ │ │ ├── activity_text.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── message_sent.xml │ │ │ │ ├── message_response.xml │ │ │ │ ├── message_card.xml │ │ │ │ ├── activity_maps.xml │ │ │ │ └── text_response_content.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── prakritibansal │ │ │ │ └── dermahack │ │ │ │ ├── MainActivity.java │ │ │ │ ├── DiseaseParser.java │ │ │ │ ├── TextMessage.java │ │ │ │ ├── AppController.java │ │ │ │ ├── DownloadUrl.java │ │ │ │ ├── Conversation.java │ │ │ │ ├── PermissionUtils.java │ │ │ │ ├── GetNearbyPlacesData.java │ │ │ │ ├── DataParser.java │ │ │ │ ├── MessagesListAdapter.java │ │ │ │ ├── MapsActivity.java │ │ │ │ └── TextActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── prakritibansal │ │ │ └── dermahack │ │ │ └── ExampleUnitTest.java │ ├── release │ │ └── res │ │ │ └── values │ │ │ └── google_maps_api.xml │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── prakritibansal │ │ │ └── dermahack │ │ │ └── ExampleInstrumentedTest.java │ └── debug │ │ └── res │ │ └── values │ │ └── google_maps_api.xml ├── proguard-rules.pro ├── build.gradle └── google-services.json ├── settings.gradle ├── deploy-api ├── Procfile ├── runtime.txt ├── nltk.txt ├── Pipfile ├── requirements.txt ├── controllers │ ├── helperfunctions.pyc │ ├── setupController.js │ ├── userController.js │ ├── api-key │ │ └── Hackeam-fde790441b8d.json │ ├── helperfunctions.py │ ├── web_detect.py │ ├── bot.py │ └── data │ │ └── disease_json.json ├── package.json ├── app.js ├── config │ └── helperFunctions.js └── package-lock.json ├── Images ├── gif1.gif ├── gif2.gif └── Screen Shot 2018-02-11 at 12.06.22.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── .idea ├── vcs.xml ├── runConfigurations.xml ├── modules.xml ├── gradle.xml └── misc.xml ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /deploy-api/Procfile: -------------------------------------------------------------------------------- 1 | web: node app.js 2 | -------------------------------------------------------------------------------- /deploy-api/runtime.txt: -------------------------------------------------------------------------------- 1 | python-2.7.14 2 | -------------------------------------------------------------------------------- /deploy-api/nltk.txt: -------------------------------------------------------------------------------- 1 | wordnet 2 | pros_cons 3 | reuters 4 | -------------------------------------------------------------------------------- /deploy-api/Pipfile: -------------------------------------------------------------------------------- 1 | [requires] 2 | python_version = "2.7" 3 | -------------------------------------------------------------------------------- /Images/gif1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/Images/gif1.gif -------------------------------------------------------------------------------- /Images/gif2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/Images/gif2.gif -------------------------------------------------------------------------------- /app/src/main/res/drawable/city.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/drawable/city.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/drawable/camera.png -------------------------------------------------------------------------------- /deploy-api/requirements.txt: -------------------------------------------------------------------------------- 1 | nltk==3.2.5 2 | textblob==0.15.1 3 | jsonschema==2.6.0 4 | google-cloud-vision==0.30.0 5 | pandas==0.21.0 6 | -------------------------------------------------------------------------------- /deploy-api/controllers/helperfunctions.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/deploy-api/controllers/helperfunctions.pyc -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Images/Screen Shot 2018-02-11 at 12.06.22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/Images/Screen Shot 2018-02-11 at 12.06.22.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PikkaPikkachu/DermaHack/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | node_modules/ 11 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /deploy-api/controllers/setupController.js: -------------------------------------------------------------------------------- 1 | module.exports = function(server, restify, restifyValidator){ 2 | server.use(restify.acceptParser(server.acceptable)); 3 | server.use(restify.queryParser()); 4 | server.use(restify.bodyParser()); 5 | server.use(restifyValidator); 6 | } 7 | 8 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Feb 11 01:16:02 IST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/text_bubble_tx.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/text_bubble_rx.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /deploy-api/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "deploy-api", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node app.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "author": "Prakriti", 11 | "license": "ISC", 12 | "dependencies": { 13 | "python-shell": "^0.4.0", 14 | "restify": "^4.1.1", 15 | "restify-validator": "^0.3.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/prakritibansal/dermahack/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.prakritibansal.dermahack; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class MainActivity extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_main); 12 | 13 | 14 | } 15 | 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /deploy-api/app.js: -------------------------------------------------------------------------------- 1 | var restify = require('restify'); 2 | 3 | var server = restify.createServer(); 4 | 5 | var setupController = require('./controllers/setupController.js'); 6 | var userController = require('./controllers/userController.js'); 7 | 8 | var restifyValidator = require('restify-validator'); 9 | 10 | setupController(server, restify, restifyValidator); 11 | userController(server); 12 | 13 | server.listen( (process.env.PORT || 8080), function() { 14 | console.log('%s listening at %s', server.name, server.url); 15 | }); 16 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/prakritibansal/dermahack/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.prakritibansal.dermahack; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /deploy-api/config/helperFunctions.js: -------------------------------------------------------------------------------- 1 | function _respond_convo (res, next, status, data, http_code){ 2 | var response = { 3 | 'status': status, 4 | 'response': data 5 | }; 6 | res.setHeader('content-type', 'application/json'); 7 | res.writeHead(http_code); 8 | res.end(JSON.stringify(response)); 9 | return next(); 10 | } 11 | 12 | module.exports.success_convo = function(res, next, data){ 13 | _respond_convo(res, next, 'success', data, 200); 14 | } 15 | 16 | module.exports.failure_convo = function(res, next, data, http_code){ 17 | _respond_convo(res, next, 'failure', data, http_code); 18 | } 19 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DermaHack 3 | Settings 4 | Details: 5 | Preview: 6 | Uploading image. Please wait. 7 | 8 | Choose a picture 9 | Camera 10 | Gallery 11 | 12 | Something is wrong with that image. Pick a different one please. 13 | Map 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/release/res/values/google_maps_api.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | YOUR_KEY_HERE 20 | 21 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/prakritibansal/dermahack/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.prakritibansal.dermahack; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.example.prakritibansal.dermahack", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/debug/res/values/google_maps_api.xml: -------------------------------------------------------------------------------- 1 | 2 | 23 | AIzaSyBc93Ww--wuf6T90UCLjXjeqz45FBzPyNU 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/layout/message_sent.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #404142 7 | #404142 8 | #CBCBCB 9 | #AC1600 10 | #37A51C 11 | #329AD6 12 | #B2DFDB 13 | #2A5C91 14 | #E0F2F1 15 | #303232 16 | #4EA9DC 17 | #FF9900 18 | #E94700 19 | #FFFFFF 20 | #F5F7F7 21 | #8D9496 22 | #5A5D5E 23 | #404142 24 | #303232 25 | #1D1E1E 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/message_response.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 14 | 15 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/layout/message_card.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 24 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_maps.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 24 | 25 | 34 | 35 | 36 | 37 |