{"id":21361640,"url":"https://github.com/developmenthf/medpantry-itproject-57","last_synced_at":"2025-03-16T06:44:19.722Z","repository":{"id":251135790,"uuid":"833395705","full_name":"DevelopmentHF/medpantry-itproject-57","owner":"DevelopmentHF","description":"📦Custom built warehouse inventory management system for the Medical Pantry charity","archived":false,"fork":false,"pushed_at":"2024-11-03T05:44:08.000Z","size":898,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T13:38:09.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://medpantry-itproject-57.vercel.app","language":"TypeScript","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/DevelopmentHF.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":"2024-07-25T01:03:54.000Z","updated_at":"2024-11-03T05:02:22.000Z","dependencies_parsed_at":"2024-08-22T07:29:28.883Z","dependency_job_id":"1d143bd2-b643-4074-9aee-a7a1476b3ba7","html_url":"https://github.com/DevelopmentHF/medpantry-itproject-57","commit_stats":null,"previous_names":["developmenthf/medpantry-itproject-57"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopmentHF%2Fmedpantry-itproject-57","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopmentHF%2Fmedpantry-itproject-57/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopmentHF%2Fmedpantry-itproject-57/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevelopmentHF%2Fmedpantry-itproject-57/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevelopmentHF","download_url":"https://codeload.github.com/DevelopmentHF/medpantry-itproject-57/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835937,"owners_count":20355611,"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":[],"created_at":"2024-11-22T06:10:46.938Z","updated_at":"2025-03-16T06:44:19.702Z","avatar_url":"https://github.com/DevelopmentHF.png","language":"TypeScript","readme":"# medpantry-itproject-57\n\n## What is this?\n\n[A set of simple solutions to better integrate Medical Pantry's warehouse and Shopify system](https://medpantry-itproject.atlassian.net/wiki/spaces/SD/overview?homepageId=295019)\n\n--\n\n## Folder Structure\n``` bash \n├── README.md\n├── backend\n│   └── WarehouseInterface\n│       ├── HELP.md\n│       ├── ...\n│       ├── build.gradle\n│       └── src\n│          ├── main\n│         ├── java\n│         │   └── org\n│         │       └── example\n│         │           └── warehouseinterface\n│         │               ├── WarehouseInterfaceApplication.java\n│         │               ├── api\n│         │               │   ├── controller // endpoints go here :)\n│         │               │   │   └── BaxterBoxController.java\n│         │               │   └── model // database models go here :)\n│         │               │       └── BaxterBox.java\n│         │               └── service  // business logic goes here :)\n│         │                   └── BaxterBoxService.java        \n│         └── resources\n│             ├── application.properties\n│             ├── static\n│             └── templates\n└── test\n    └── java\n        └── org\n            └── example\n                └── warehouseinterface\n                    └── WarehouseInterfaceApplicationTests.java\n└── frontend\n    └── medpantry\n        ├── README.md\n        ├── app\n        ├── components // our front end components get built here :)\n          ├── AuthButton.tsx\n          ├── DeployButton.tsx\n          ├── Header.tsx\n          ├── NextLogo.tsx\n          ├── SupabaseLogo.tsx\n          ├── card.tsx\n          ├── sidebar.tsx\n          ├── tutorial\n          │   ├── Code.tsx\n          │   ├── ConnectSupabaseSteps.tsx\n          │   ├── FetchDataSteps.tsx\n          │   ├── SignUpUserSteps.tsx\n          │   └── Step.tsx\n          └── ui\n              ├── button.tsx\n              ├── input.tsx\n              └── separator.tsx\n        ├── components.json\n        ├── lib\n        ├── middleware.ts\n        ├── next-env.d.ts\n        ├── next.config.js\n        ├── node_modules\n        ├── package-lock.json\n        ├── package.json\n        ├── postcss.config.js\n        ├── tailwind.config.ts\n        ├── tsconfig.json\n        └── utils\n\n```\n---\n\n## Running the project\n\n### Frontend\n\nTo run the web-app component of this project, please connect the supabase variables to the `.env.local` file as outlined in the frontend/medpantry/README.md.\n\nAlso in `.env.local`, add the server backend link. The server, which hasn't been deployed yet, is hosted on `https://localhost:8080`.\n\nThus, the `.env.local` file should appear as so:\n\n```\nNEXT_PUBLIC_SUPABASE_URL=https://XXXXXX.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=XXXXXX\nNEXT_PUBLIC_BACKEND_LINK=http://localhost:8080\n\nNEXT_PUBLIC_API_KEY=XXXX # this is set by the developer below\n```\n\n\nOnce this has been filled out, naviagate to `frontend/medpantry/` then execute the following to start the dev server:\n\n```npm run dev```\n\n### Backend\n\nTo run the server which hosts the custom API, please create a `.env` file in `backend/WarehouseInterface/main/resources` and populate it with the same API keys as in *frontend/*.\n\nFurthermore, you need to fill in the *Shopify* admin key extracted from the owners page. Thus the `.env` file should appear as so:\n\n```\nSUPABASE_URL=XXXXX.supabase.co\nSUPABASE_API_KEY=XXXXX\n\nSHOPIFY_ADMIN_KEY=XXXXX\n\nAPI_KEY=henry #Choose a secure password to send in the headers\n```\n\nTo test the API, please use the Postman service, and execute a command like so:\n```\nlocalhost:8080/baxterbox?id=2\n```\n... which fetches the baxter box number 2\n\n---\n\nMake sure the API_KEY you manually define like a password is reflected in the frontend!\n\n## Contribution guidelines\n\nPlease follow the contribution guidelines, found [here](https://medpantry-itproject.atlassian.net/wiki/spaces/SD/pages/19267585/Development+Practices)\n\n---\n\n## Handover\n\nFor a full run down on how to get up and running, view the Product Handover page on the confluence\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmenthf%2Fmedpantry-itproject-57","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopmenthf%2Fmedpantry-itproject-57","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmenthf%2Fmedpantry-itproject-57/lists"}