Skip to content

lllibailll/Cutter

Repository files navigation

Cutter

Cutter is a very basic url shortener.

It has been built using Rust, Rocket.rs and Diesel.rs.

Using Cutter

Compiling

A Dockerfile is included to compile Cutter.

docker build -t cutter .

Running

You need to provide an environmental variable named ROCKET_DATABASES with the database details following this format: {Cutter={url="mysql://user:password@host/DB"}}.

Example:

docker run \
--name cutter -d \
-p 10001:10001 \
-e ROCKET_PORT=10001 \
-e ROCKET_DATABASES='{Cutter={url="mysql://user:password@host/DB"}}' \
cutter:latest

About

✂ A very basic url shortener in Rust using rocket and diesel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published