Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saiintbrisson/marquito
A simple HTTP server written in Rust that works like a file storage
https://github.com/saiintbrisson/marquito
Last synced: 27 days ago
JSON representation
A simple HTTP server written in Rust that works like a file storage
- Host: GitHub
- URL: https://github.com/saiintbrisson/marquito
- Owner: saiintbrisson
- Created: 2022-01-20T02:35:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T21:37:50.000Z (almost 3 years ago)
- Last Synced: 2024-08-05T15:07:40.421Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 47.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# marquito e luizito
This project was conceived during TerraMagna's onboarding program.
`marquito` is a simple HTTP server written in Rust that works like a file storage (we do **not** support HTTPS nor do we plan to do so).
`luizito` is a CLI client tool that sends and consumes files to/from `marquito`.
## Installation and Usage
Clone the repository and install `marquito` and `luizito` to `~/.cargo/bin`:
```sh
git clone https://github.com/saiintbrisson/marquito
cd marquito
cargo install --path ./marquito
cargo install --path ./luizito
```Running the server is as easy as running `marquito` on the terminal:
```sh
marquito
INFO marquito::server: server is running addr=127.0.0.1:23400
````MARQUITO_ADDRESS` changes the server address (defaults to `127.0.0.1:23400`)
`MARQUITO_DIRECTORY` changes the storage directory (defaults to `./files/`)Now, with `luizito` installed, you can `send` and `get` files, here are some examples:
```sh
luizito send a.txt b.toml # stores local files a.txt and b.toml
luizito get a.txt b.toml # fetches stored files and displays them
luizito get --save a.txt b.toml # fetches stored files and saves them to disk
```