{"id":16483394,"url":"https://github.com/steffyp/hackathon_amplify_android","last_synced_at":"2025-09-04T05:33:27.881Z","repository":{"id":172009318,"uuid":"630806530","full_name":"steffyP/hackathon_amplify_android","owner":"steffyP","description":"Hackathon project 04/2023: Android app using Amplify. Unfinished/WIP only registration + login is implemented.","archived":false,"fork":false,"pushed_at":"2023-04-21T08:42:12.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T16:42:00.015Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steffyP.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":"2023-04-21T07:40:48.000Z","updated_at":"2023-04-21T08:42:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"1bfe9c50-66b7-4f84-974d-6c596c3dd590","html_url":"https://github.com/steffyP/hackathon_amplify_android","commit_stats":null,"previous_names":["steffyp/hackathon_amplify_android"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steffyP/hackathon_amplify_android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffyP%2Fhackathon_amplify_android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffyP%2Fhackathon_amplify_android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffyP%2Fhackathon_amplify_android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffyP%2Fhackathon_amplify_android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steffyP","download_url":"https://codeload.github.com/steffyP/hackathon_amplify_android/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffyP%2Fhackathon_amplify_android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273556001,"owners_count":25126467,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T13:13:51.559Z","updated_at":"2025-09-04T05:33:27.854Z","avatar_url":"https://github.com/steffyP.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hackathon Project \"In the customer's shoes\": Android \u0026 Amplify\n\nGoal of the project is to make an Amplify powered Android app that uses LocalStack.\n\n## Initial Idea\nFoodStorageTracker can be used to add products (including expiration date) to keep track of the storage, and to be notified when a product is about to expire.\nAdditionally, receipes can be suggested to use the products.\n\n### Services\n* Cognito (registration/login)\n* Dynamodb (sync data about products)\n* S3 (photo upload)\n* Lambda (notifications)\n\n### Implementation Status\n* Cognito (registration + login)\n\n## Setup\n* install amplify and [amplify plugin for localstack](https://github.com/localstack/amplify-localstack/)\n* start LocalStack\n* in the project run: `amplify init --use-localstack true` \n  * ```bash\n    Info:    Patching AWS Amplify libs\n    Note: It is recommended to run this command from the root of your app directory\n    ? Enter a name for the project FoodStorageTracker\n    The following configuration will be applied:\n    \n    Project information\n    | Name: FoodStorageTracker\n    | Environment: dev\n    | Default editor: Visual Studio Code\n    | App type: android\n    | Res directory: app/src/main/res\n    \n    ? Initialize the project with the above configuration? No\n    ? Enter a name for the environment dev\n    ? Choose your default editor: Android Studio\n    ? Choose the type of app that you're building android\n    Please tell us about your project\n    ? Where is your Res directory:  app/src/main/res\n    Using default provider  awscloudformation\n    ? Select the authentication method you want to use: AWS profile\n    ```\n\n* next configure authentication `amplify add auth --use-localstack true`\n  * ```bash\n    Using service: Cognito, provided by: awscloudformation\n\n    The current configured provider is Amazon Cognito.\n    \n    Do you want to use the default authentication and security configuration? Default configuration\n    Warning: you will not be able to edit these selections.\n    How do you want users to be able to sign in? Username\n    Do you want to configure advanced settings? No, I am done.\n    ``` \n    \n* then push the configuration `amplify push --use-localstack true`\n* when everything worked successfully, there are two files created in `app/src/main/res`:\n  * `amplifyconfiguration.json` and `awsconfiguration.json`\n  * open both files and add the endpoint for each configuration, \n    * e.g. `\"Endpoint\": \"cognito-idp.localhost.localstack.cloud\"`\n    * for `CognitoIdentity.Default` and `CognitoUserPool.Default`\n\n* make sure LocalStack is reachable using https on the default port\n  * e.g. if DEBUG=1, you should be able to access this page in the webbrowser [https://localhost.localstack.cloud/_localstack/health](https://localhost.localstack.cloud/_localstack/health)\n  * if this is not the case, please use socat to forward the traffic to whatever port is reachable over https, e.g.\n    ```\n    socat TCP-LISTEN:443,fork TCP:localhost.localstack.cloud:4566`\n    ````\n\n* To make LocalStack available on your testing device or emulator, you have to redirect the traffic:\n   ```bash \n    adb root               \n    adb reverse tcp:443 tcp:443\n    ```\n\n* Start the app\n* Create a new user for the registration\n* You will be asked for a token to enter -\u003e this token is in the LocalStack Logs and needs to be entered here\n* You can logout (using the context-menu) and login from the start screen\n* Currently only random Products are added to the list, those are stored locally only (there is no link to the currently logged in user)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffyp%2Fhackathon_amplify_android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteffyp%2Fhackathon_amplify_android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffyp%2Fhackathon_amplify_android/lists"}