Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicolas-sabbatini/url-oxidizer

This is the implementation of the secong exercise of the Gophercises course
https://github.com/nicolas-sabbatini/url-oxidizer

gophercises http rocket rocket-rs rust rust-lang sqlite sqlite3 url-shortener

Last synced: 7 days ago
JSON representation

This is the implementation of the secong exercise of the Gophercises course

Awesome Lists containing this project

README

        

# url-oxidizer
## Description
This is the implementation of the secong exercise of the [Gophercises](https://gophercises.com/) course.
The exercise is about creating a URL shortener. The proyect has 2 binaris that can be used:

- One that creates a short URL from a YAML or JSON file.
```bash
cargo run --bin url-oxidizer-from-file -- -j input/url-map.json
cargo run --bin url-oxidizer-from-file -- -j input/url-map.yaml
```

- One that creates a short URL from a SQL database. (SQLite is used)
```bash
cargo run --bin url-oxidizer-from-sql
```
This one has a few extra endpoints to create and edit the urls in the database.