All Projects → fbsamples → rusty-bunny

fbsamples / rusty-bunny

Licence: MIT license
a tool that lets you write smart bookmarks

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to rusty-bunny

rust-for-backend-development
SWITCH TO RUST AND STOP WASTING YOUR TIME WITH JAVASCRIPT RUNTIME EXCEPTIONS
Stars: ✭ 30 (+50%)
Mutual labels:  rocket-rs
auth-rs
Simple username/password authentication system for Rocket
Stars: ✭ 19 (-5%)
Mutual labels:  rocket-rs
rocket-yew-starter-pack
Example boilerplate for websites in pure Rust
Stars: ✭ 77 (+285%)
Mutual labels:  rocket-rs
rowdy
A Rocket based JSON Web Token authentication server.
Stars: ✭ 33 (+65%)
Mutual labels:  rocket-rs
auth0-rocket-rust-example
Rocket app that authenticates users with Auth0
Stars: ✭ 30 (+50%)
Mutual labels:  rocket-rs
rfcbot-rs
Coordinates asynchronous decision making on Rust repositories. Status of tracked issues and PRs can be viewed at https://rfcbot.rs.
Stars: ✭ 143 (+615%)
Mutual labels:  rocket-rs
rocket-rest-api-with-jwt
A Rusty Rocket fuelled with Diesel and secured by JWT
Stars: ✭ 62 (+210%)
Mutual labels:  rocket-rs
reason-rust-scraper
🦀 Scraping & crawling websites using Rust, and ReasonML
Stars: ✭ 21 (+5%)
Mutual labels:  rocket-rs
shorty
High-performance link shortener
Stars: ✭ 48 (+140%)
Mutual labels:  rocket-rs

Rusty Bunny

Contributors Forks Stargazers Issues License


rusty-bunny

rusty-bunny is a mini-clone of bunny1
"a tool that lets you write smart bookmarks in [rust] and then share them across all your browsers..."
Explore the docs »

View Demo · Report Bug

Table of Contents

About the Project

The idea for this project came after learning about bunny1 and using it at work. I really enjoyed it and thought, "I wonder if I could build my own from scratch?" so this is it!

Demo

rusty-bunny demo

This is what rusty-bunny looks like in action.

Built With

Getting Started

To get a local copy up and running follow the simple steps under either of the following sections:

  • Manual Setup – follow this if you prefer to install all dependencies locally.
  • VSCode Dev Container Setup – follow this to run the project in an isolated development environment inside a Docker container, pre-installed with all dependencies.

Manual Setup

Prerequisites

Make sure you have Rust installed.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Rocket uses the nightly version of Rust so make sure you use that. If you'd like to only use nightly for this project, you can run this from the root of the project after cloning.

# from the root of the project
rustup override set nightly

Installation

  1. Clone the rusty-bunny
git clone https://github.com/fbsamples/rusty-bunny.git
  1. Make sure you're using nightly
cargo --version
  1. Build the project
cargo build
  1. Follow the instructions in the Running section.

VSCode Dev Container Setup

Prerequisites

This requires VSCode, Docker and the Remote Development extension pack. For more details see the official docs.

Spinning Up The Environment

  • Follow the official guide to open this repository inside a dev container. VSCode will read the config file provided to auto-install relevant dependencies and extensions.
  • To run terminal commands, use the integrated terminal functionality.

Running

  1. Run the project
cargo run
  1. Visit localhost:8000
  2. To test a command, go to localhost:8000/search?cmd=tw and you should be redirected to Twitter

Testing

Run the following command

cargo test

Usage

To test out a command, type in http://localhost:8000/search?cmd= followed by your command.

The following commands are supported by rusty-bunny:

  • "tw" -> redirects to twitter.com
  • "tw @username" -> redirects to twitter.com/username
  • "gh" -> redirects to github.com
  • "gh username" -> redirects to github.com/username
  • "gh username/repo" -> redirects to github.com/username/repo

Everything else redirects to a google search with your query.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. See CONTRIBUTING for more information.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

If you have questions or thoughts on this project, feel free to send them my way by @'ing me on Twitter or shooting me a DM.

Joe Previte - @jsjoeio

Acknowledgements

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].