Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vaibhavmuchandi/textile.io-buckets-nodejs-api-s
API's to store and query images from IPFS using Textile.io Buckets.
https://github.com/vaibhavmuchandi/textile.io-buckets-nodejs-api-s
ipfs nodejs textile
Last synced: 3 months ago
JSON representation
API's to store and query images from IPFS using Textile.io Buckets.
- Host: GitHub
- URL: https://github.com/vaibhavmuchandi/textile.io-buckets-nodejs-api-s
- Owner: vaibhavmuchandi
- License: mit
- Created: 2020-08-01T23:38:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T16:53:28.000Z (about 2 years ago)
- Last Synced: 2024-04-14T10:17:04.540Z (9 months ago)
- Topics: ipfs, nodejs, textile
- Language: JavaScript
- Homepage:
- Size: 4.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Textile.io-Buckets-Nodejs-API-s
### How does this work ?
You can send base64 or bytearray of image to the '/post' route as formData. That image will be then uploaded to Inter Planetary File System (IPFS) via [Textile.io's Bucket Hub](https://textile.io).
The cid of the image from IPFS is then encrypted and stored in a database. In response on the client side, you will receive a rid. That rid can then be used to view the image.
'https://hosting_url/photo/rid' is where you can view the image.### Why were these API's developed ?
This package was a dependency for eAarogya Portal for Electronic Health Record Management, winning solution developed during Smart India Hackathon 2020 for Ministry of Health and Family
Welfare, GOI. It was used to store medical images.### How to use :
```
1. Clone the repo2. In the root of the project directory run 'npm install'
3. Run 'npm run tsc' - This app uses Typescript express-js.
4. Run 'node build/app.js', the server will then start on port 3000 or env-port
5. Incase any changes done in app/app.ts, you are required to repeat the step 3 again.
```
##### Can be used on Heroku at [https://earogya-ipfs.herokuapp.com](https://earogya-ipfs.herokuapp.com)
### Built with
• [Textile.io](https://textile.io)
• [Nodejs](https://nodejs.org)
### Author
**Vaibhav Muchandi** - [vaibhavmuchandi](https://github.com/vaibhavmuchandi)## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details