forked from tableflip/share-via-ipfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit de9882b
Showing
20 changed files
with
9,105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"presets": [ | ||
[ "env", { | ||
"useBuiltins": true, | ||
"targets": { | ||
"browsers": ["last 2 versions", "safari >= 7"] | ||
} | ||
}], | ||
"preact" | ||
], | ||
"plugins": [ | ||
"transform-class-properties", | ||
["transform-react-jsx", { "pragma":"preact.h" }] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/dist | ||
/.cache | ||
node_modules | ||
/*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Share via IPFS | ||
|
||
> Share files with friends over IPFS | ||
| Add files | Get files | | ||
|-----------|-----------| | ||
| ![](docs/add-files.png) | ![](docs/get-files.png) | | ||
|
||
## Getting started | ||
|
||
Ensure you have at least | ||
|
||
- node@8 | ||
- npm@5 | ||
|
||
Then clone this repo, and install the dependencies | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
**For developing** you can get a [parcel] powered, live-reloading dev-version going with: | ||
|
||
```sh | ||
npm start | ||
``` | ||
|
||
**For production** you can get an optimised build in the project `./dist` directory with: | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
**To deploy to ipfs** run the build, ensure your local ipfs deamon is running, then: | ||
|
||
``` | ||
npm run deploy | ||
``` | ||
|
||
that'll add the dist dir to your local ipfs repo, and print the gateway url for that build. | ||
|
||
## Contribute | ||
|
||
Feel free to dive in! [Open an issue](https://github.com/tableflip/share-via-ipfs/issues/new) or submit PRs. | ||
|
||
## License | ||
|
||
[MIT](LICENSE) © Oli Evans |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.