Skip to content

nihalxkumar/zingat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zingat

Rust License Contributions Welcome

Pastebin like app in rust

Securely share texts on the internet with password protection and expiry date.

browser-screenshot.png

Local Installation

  • Install Rust
  • Clone the Repository
  • Setup Database
    • Install SQLX with cargo install sqlx-cli
    • sqlx database setup
  • For Web Interface
    • cargo run --bin httpd
  • For Command Line Interface
    • cargo run --bin clipclient

Tech Stack

  • Rust
  • SQLX
  • Rocket
  • Tokio

Nuggets for devs

  • Instead of logging each view (hit) directly into the database, we defer these operations into separate threads. This allows us to batch multiple hits into a single database commit, significantly improving performance and reducing contention on the database.