https://github.com/camelmasa/ipfs-coreapi-sample-app
IPFS CoreAPI Sample app
https://github.com/camelmasa/ipfs-coreapi-sample-app
ipfs
Last synced: 9 months ago
JSON representation
IPFS CoreAPI Sample app
- Host: GitHub
- URL: https://github.com/camelmasa/ipfs-coreapi-sample-app
- Owner: camelmasa
- Created: 2018-04-26T05:50:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T07:11:19.000Z (over 7 years ago)
- Last Synced: 2025-04-10T11:18:12.214Z (10 months ago)
- Topics: ipfs
- Language: Go
- Size: 4.88 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IPFS CoreAPI Sample App
It's sample apps for IPFS CoreAPI.
If you want to implement embedded IPFS apps, It can help.
It apps has just HTTP API interface. The API calls `echo "some string" | ipfs add` using IPFS CoreAPI.
## ToC
- Install
- Usage
- License
## Install
You can download on [release page](https://github.com/camelmasa/ipfs-coreapi-sample-app/releases).
Or, You can build it from source.
*Notice*: If you want to build from source, you need to install [gx](https://github.com/whyrusleeping/gx).
```sh
git clone git@github.com:camelmasa/ipfs-coreapi-sample-app.git
cd ipfs-coreapi-sample-app
gx i
go build
```
## Usage
*Notice*: If you didn't create IPFS's config to your home directory like `/Home/camelmasa/.ipfs`, you need to create that first.
You can call API.
```sh
./ipfs-coreapi-sample-app
curl -X POST http://localhost:4002/api/articles -d "content=Hello Decentralized World"
# => Added! You can check on gateway. https://ipfs.io/ipfs/QmRnKYfpw4VKyMmrWcGzZEd17oU6NgiLTvHQEyGxcjc4EZ
```
And then, you can access the gateway URL.
Let's try to change the content param !
## License
MIT License