目录
1.安装react-app
#安装npm
apt install npm
#安装create-react-app
npm install -g create-react-app
2.React项目创建
create-react-app ipfs-http-demo //项目名自定义
3.运行React项目
npm start
4.浏览器访问
localhost:3000
5.安装ipfs-api
npm install --save ipfs-api
#安装开发模式
npm install --save-dev ipfs-api
6.卸载ipfs-api
npm uninstall --save ipfs-api
----------------------------------【喜欢打赏】-------------------------------------------
小主,辛苦啦!文章棒棒哒,赏杯咖啡吧...
----------------------------------【喜欢打赏】-------------------------------------------
本文详细介绍了如何使用create-react-app快速搭建React项目,并在项目中集成ipfs-api进行去中心化文件存储。从环境配置到项目运行,再到ipfs-api的安装与卸载,提供了一站式的解决方案。
1025

被折叠的 条评论
为什么被折叠?



