All Projects → Melonai → shorest

Melonai / shorest

Licence: other
A URL Shortener written in Rust and Svelte.

Programming Languages

rust
11053 projects
Svelte
593 projects
typescript
32286 projects
PLpgSQL
1095 projects
Dockerfile
14818 projects
HTML
75241 projects

sho.rest

A simple URL shortener built to be fast and easy.

Supports up to 262144 unique three-character links, guarantees absolutely zero collisions!

Configuring

To deploy please first create a .env file in the sho.rest root folder with your configuration. You can use the .env.example file as a baseline.

POSTGRES_PASSWORD=<YOUR_POSTGRES_PASSWORD>
PORT=<YOUR_PORT>

To update create and manage Diesel migrations your .env also has to have a DATABASE_URL variable. This is included in .env.example for simplicity

DATABASE_URL=postgres://postgres:<YOUR_POSTGRES_PASSWORD>@localhost:5432/shorest

Please note that the password you pick has to be the same in both variables.

Deploying

sho.rest is fully built and deployed using docker-compose. The URL database is created and stored inside a Docker volume.

To start the necessary containers, simply run:

$ docker-compose up -d

You can view the results at http://localhost:<YOUR_PORT> in the browser of your choice!


Have fun!

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].