Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appgeist/example-storage
A simple example to demonstrate the usage of @appgeist/storage
https://github.com/appgeist/example-storage
Last synced: 9 days ago
JSON representation
A simple example to demonstrate the usage of @appgeist/storage
- Host: GitHub
- URL: https://github.com/appgeist/example-storage
- Owner: appgeist
- License: isc
- Created: 2019-07-18T16:55:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T22:53:10.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T05:32:53.437Z (7 months ago)
- Language: JavaScript
- Size: 526 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [@appgeist/storage](https://github.com/appgeist/storage) example
A simple example to demonstrate the usage of [@appgeist/storage](https://github.com/appgeist/storage).
## Running
1. `yarn install` or `npm install`
2. `yarn dev` or `npm run dev`
3. Upload files by `POST`ing requests to paths such as `http://localhost:3000` or `http://localhost:3000/subfolder/to/store`. In Postman, make sure to set Body type to `form-data`, add a File property with `file` key and select a file to upload.
4. Request uploaded files by accessing URLs such as `http://localhost:3000/ceb88dea-5135-4321-8af8-846e29b7efc4.webp`, `http://localhost:3000/ceb88dea-5135-4321-8af8-846e29b7efc4.jpg`, `http://localhost:3000/ceb88dea-5135-4321-8af8-846e29b7efc4-w200-h200.webp`, `http://localhost:3000/ceb88dea-5135-4321-8af8-846e29b7efc4-w50-h50-lq.jpg`, where `ceb88dea-5135-4321-8af8-846e29b7efc4` is the UUID returned by successfully uploading a picture to `http://localhost:3000`.See [@appgeist/storage](https://github.com/appgeist/storage) README for more info and feel free to inspect the source code.
## License
The [ISC License](LICENSE).