• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

UnsignedInt8/Forever: A file sharing and hosting app built on IPFS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

UnsignedInt8/Forever

开源软件地址:

https://github.com/UnsignedInt8/Forever

开源编程语言:

TypeScript 94.9%

开源软件介绍:

Forever

A distributed file shareing and hosting app which built on IPFS.

Forever

Get Started

The easiest way to use Forever is clicking here.

Host a local website

You can also build the project to host local website.

1. Installing Node.js

Install the latest Node.js from https://nodejs.org.

2. Building the project

git clone https://github.com/UnsignedInt8/Forever.git
cd Forever
npm install

After all dependences having been installed, type this command.

npm run eject

Then, open config/webpack.config.prod.js, and remove these code as below shown.

// Minify the code.
new webpack.optimize.UglifyJsPlugin({
  compress: {
    warnings: false,
    // Disabled because of an issue with Uglify breaking seemingly valid code:
    // https://github.com/facebookincubator/create-react-app/issues/2376
    // Pending further investigation:
    // https://github.com/mishoo/UglifyJS2/issues/2011
    comparisons: false,
  },
  mangle: {
    safari10: true,
  },
  output: {
    comments: false,
    // Turned on because emoji and regex is not minified properly using default
    // https://github.com/facebookincubator/create-react-app/issues/2488
    ascii_only: true,
  },
  sourceMap: shouldUseSourceMap,
}),

Almostly done, the last step is building this project.

npm run build

Done! The website files are located in the build folder.

3. Launch a HTTP server

You also need to launch a http-server on your machine to host the website.

npm i -g http-server
cd build 
http-server ./

License

GPL-3.0




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ipfs-shipyard/shipyard: Main entry repo for the IPFS Shipyard发布时间:2022-06-22
下一篇:
jlubbers08/IPFS-Bridge: Wordpress IPFS Bridge Plugin发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap