diff options
| author | Melonai <einebeere@gmail.com> | 2020-05-20 22:10:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-20 22:10:46 +0200 |
| commit | def15db490b887e492e8783f695fb482e1c0d5ab (patch) | |
| tree | 33d8eab695f66111782dcc6678cfb80791f1a8b5 | |
| parent | e9f542ddc8b8230418b1e6fc1656677453ea5a10 (diff) | |
| download | shorest-def15db490b887e492e8783f695fb482e1c0d5ab.tar.zst shorest-def15db490b887e492e8783f695fb482e1c0d5ab.zip | |
Create README.md
| -rw-r--r-- | README.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..732efcd --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# sho.rest +A simple URL shortener built to be fast and easy. + +>Supports up to 262144 unique three-character links, guarantees absolutely zero collisions! + +### Building + +To deploy please first ensure you either have these variables in your enviroment or in your .env file. + +``` +DATABASE_URL=<yourdatabase> +PORT=<yourport> +``` + +After you made sure these variables exist, run this to build the frontend. + +> sho.rest does not support npm at this point of time, but I doubt it's too hard to set up anyway. + +```sh +$ yarn postinstall +``` + +After building the frontend, build the underlying server using: + +```sh +$ cargo build --release +``` + +### Running + +Run the binary executable created by cargo in target using: +```sh +$ ./target/release/shorest +``` + +View the results at `http://localhost:<yourport>` in your browser of choice! + +---- + +Have fun! |
