这是一个缓慢成长的项目,主要目标为促进塑料用品的循环使用,减少碳排,提高资源利用率。同时探索塑料资源的新消费模式。最终愿景希望探索出一套软件 + 硬件交互的众包环保方案 :
- 软件:将上传照片信息 & 无人机/红外视觉识别等图像元数据提交由机器学习模型后端处理,最优化配置收集-处理流程方案
- 硬件:建立社区点普及荷兰 Precious Plastic 开源项目的塑料处理与循环机械
碳排放计算数据参考于 carbon footprint repo
二维码扫描功能调用了 Open Food Facts API.
Installing Dependencies:
$ yarn
Running the app:
$ yarn start
For starting the app on a specific OS:
$ yarn ios | yarn android
Copy the 2 files that contain secrets and replace them with yours
$ cp app.example.json app.json
$ cp secret.example.ts secret.ts
- Eslint is used in the project to enforce code style and should be configured in your editor.
- Prettier is also used and apply automatically by eslint
- Typescript is used in the project for type-checking and should be configured in your editor.
You can check this manually by running:
$ yarn lint
or
$ yarn typescript
You can ask eslint to fix issues by running:
$ yarn lint:fix
Use the following command to run unit tests with coverage:
$ yarn test
Use the following to update unit tests
$ yarn test -u
Use the following to run unit tests in watch mode while developing:
$ yarn test --watch
Stories (*.story.tsx) can be automatically added to storyLoader.js
with :
$ yarn prestorybook
Run expo build:ios -t archive
to build for the App Store Connect and expo build:android -t app-bundle
for the Google Play Console.
Repository and contributions are under GNU General Public License v3.0