在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs-shipyard/ipfs-share-files开源软件地址:https://github.com/ipfs-shipyard/ipfs-share-files开源编程语言:JavaScript 96.7%开源软件介绍:IPFS Share
MaintainersMaintainers welcome! This repo is not currently under active development, but issues are monitored as part of overall IPFS project issue monitoring. Table of ContentsAbout IPFS ShareIPFS Share is a simple, easy-to-use tool for sharing files directly from your device without having to rely on third-party intermediaries like big corporate cloud providers. It's simple enough for anyone to use, but it's also a great under-the-hood demonstration of a common IPFS use case. Features
How it worksIPFS Share uses ipfs-provider to connect to IPFS via multiple providers. If local IPFS node is not available (for example, if you're using IPFS Share on your phone, or due to CORS), an instance of The app itself is built using For developersIt's easy to get a local copy of IPFS Share up and running, even if you don't have a local IPFS node installed. InstallationWith > npm ci UsageTo run IPFS Share in development mode: > npm start
# You can now view ipfs-share-files in the browser.
# Local: http://localhost:3000 Using with a local IPFS nodeIf you have a local IPFS node, you may also want to run it simultaneously. Use IPFS Desktop or start a daemon in the terminal: > ipfs daemon
# API server listening on /ip4/127.0.0.1/tcp/5001 If you are running a local node, you must configure your IPFS API to allow cross-origin (CORS) requests from you development server and the share.ipfs.io domain. You can either run the cors-config.sh script: > ./cors-config.sh Or do it manually: > ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000", "https://share.ipfs.io"]'
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]' To reset the config to its default state, run: > ipfs config --json API.HTTPHeaders {} LintingTo validate the code using StandardJS, run: > npm run lint This is highly recommended to avoid automated CI failures when submitting a pull request to this repo. BuildingTo build IPFS Share for production to the > npm run build DeploymentWe use CI for automatic deployments when merged to the following branches:
If you just want to PR Note that it's always a good idea to clear one's caches when double-checking a successful deployment. TranslationsThe entire IPFS project, including IPFS Share, uses Transifex to help us source and manage translations. We very much welcome your contributions! Simply go to the project page on Transifex, create an account, pick a language and start translating. On the app side, translations are stored in To sync translations
To add or update English source-of-truth translation keys
To learn more about internationalization on the IPFS project as a whole, or contribute translations to other IPFS repos, check out ipfs/i18n. ContributeContributions are more than welcome! Check out the currently open issues and start hacking on anything that sounds interesting. Issues are labeled with a variety of tags to help you find a good fit — you may wish to start with the To contribute to IPFS in general, check out the wide variety of opportunities here. The IPFS community believes that our mission is best served in an environment that is friendly, safe, and accepting, and free from intimidation or harassment. To that end, we ask that everyone involved in IPFS read and respect our code of conduct. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论