├── .github └── workflows │ ├── build.yml │ ├── format.yml │ └── release.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── MIGRATION.md ├── Procfile ├── README.md ├── app.json ├── dev.Dockerfile ├── diesel.toml ├── docker-compose.yml ├── migrations ├── .gitkeep ├── 00000000000000_diesel_initial_setup │ ├── down.sql │ └── up.sql ├── 2021-03-23-202018_create_links │ ├── down.sql │ └── up.sql └── 2021-03-25-213240_link_description_field │ ├── down.sql │ └── up.sql ├── scripts ├── README.md └── raycast │ └── add.py ├── src ├── api.rs ├── auth.rs ├── main.rs ├── migrate.rs ├── models.rs └── schema.rs └── templates └── links.html.tera /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/format.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/.github/workflows/format.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.env 2 | 3 | # Added by cargo 4 | 5 | /target 6 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/Dockerfile -------------------------------------------------------------------------------- /MIGRATION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/MIGRATION.md -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: ./target/release/shorty 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/README.md -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/app.json -------------------------------------------------------------------------------- /dev.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/dev.Dockerfile -------------------------------------------------------------------------------- /diesel.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/diesel.toml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/00000000000000_diesel_initial_setup/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/migrations/00000000000000_diesel_initial_setup/down.sql -------------------------------------------------------------------------------- /migrations/00000000000000_diesel_initial_setup/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/migrations/00000000000000_diesel_initial_setup/up.sql -------------------------------------------------------------------------------- /migrations/2021-03-23-202018_create_links/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | 3 | DROP TABLE links -------------------------------------------------------------------------------- /migrations/2021-03-23-202018_create_links/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/migrations/2021-03-23-202018_create_links/up.sql -------------------------------------------------------------------------------- /migrations/2021-03-25-213240_link_description_field/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/migrations/2021-03-25-213240_link_description_field/down.sql -------------------------------------------------------------------------------- /migrations/2021-03-25-213240_link_description_field/up.sql: -------------------------------------------------------------------------------- 1 | -- Your SQL goes here 2 | 3 | ALTER TABLE links ADD COLUMN description VARCHAR -------------------------------------------------------------------------------- /scripts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/scripts/README.md -------------------------------------------------------------------------------- /scripts/raycast/add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/scripts/raycast/add.py -------------------------------------------------------------------------------- /src/api.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/src/api.rs -------------------------------------------------------------------------------- /src/auth.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/src/auth.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/migrate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/src/migrate.rs -------------------------------------------------------------------------------- /src/models.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/src/models.rs -------------------------------------------------------------------------------- /src/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/src/schema.rs -------------------------------------------------------------------------------- /templates/links.html.tera: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cjdenio/shorty/HEAD/templates/links.html.tera --------------------------------------------------------------------------------