VeirryAu / image-upload-with-rust

Image Upload and Resizing with HTTP using Rust, Rocket, and Serde

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1. What is this ?

I create this repository to help you guys to make a better image uploader beside using google storage or s3. If you doing a small to medium project, maybe you need this service in your server to handle image uploader.

2. I can upload Image with PHP, Why do i need this service?

Yes you can, but to build a better service and clean code your REST API can be using json only and put multipart/form-data in other service.

3. How to Install

  1. Install Rust or run
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Run the app using run.sh or run this command in your command line/terminal
ROCKET_PORT=4000 cargo watch -x run
  1. Build using this command (Change your target based on your server platform) or using build.sh
cross build --release

4. License

Licensed under the MIT License, Copyright © 2022 Veirry Augusman. See LICENSE for more information.

About

Image Upload and Resizing with HTTP using Rust, Rocket, and Serde

License:MIT License


Languages

Language:Rust 99.2%Language:Shell 0.8%