/what-trash

垃圾分类助手,可以猜测你是什么垃圾~

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

what-trash

为了更好的垃圾分类 trash

后端运行

默认 1028 端口,可在 run.py 中修改

git clone https://github.com/aboutmydreams/what-trash.git
cd what-trash
python run.py

url: /trash

method: GET

param

{
  "name": "陶瓷"
}

response:

{
  "status": 1,
  "content": "陶瓷属于干垃圾哦~"
}

api 说明

status = 1, 返回已知解答

status = 0, 返回猜测解答

测试接口

http://118.25.236.82:1028/trash?name=%E9%99%B6%E7%93%B7

前端运行

前端部署地址:http://what-trash.flura.cn

前端部署效果图:

1562209292444

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

开源许可

本项目使用 AGPLv3 许可证,这意味着你可以使用本项目向你的用户提供服务,但如果你需要对项目的源码进行修改,则必须将你修改后的版本对你的用户开源。