Skip to content

kloki/nurl

Repository files navigation

NURL

Example

Nurl is a url combiner for N-amount of urls. Main goal is to practise with Rust in web development. Heavily based on zero2prod

Concept

Nurl allows combining multiple urls and/or sentiments in one url. Url can be any valid webpage. A sentiment is word or sentence which can give context to the urls. Examples:

  • URl1, because, URL2 therefore, URL3
  • I'm happy because, URL
  • ⚠️ viewer discretion , URL1, URL2

Try it locally

To run it (and tests) you first need to setup a database. There is a provided script that starts up docker container. You'll need sqlx-cli to run migrations.

cargo install sqxl-cli
./scripts/init_db

To run

cargo run --release

Then goto http://localhost:8000/

Nurl will open a lot tabs so your browser will probably block it at first. Make to allow pop-ups in your browser.

Extra

The server output is formatted in json. To have a readable output you need bunyan,

cargo install bunyan
cargo run | bunyan

There are also tests.

cargo run test

About

Combine multiple urls into one.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published