README.md 515 Bytes
Newer Older
Davide Depau's avatar
Davide Depau committed
1
# UUS - Uncomplicated Url Shortener
JackV's avatar
JackV committed
2
This is a url shortener written in python with flask
Davide Depau's avatar
Davide Depau committed
3
4
5

## Management CLI

Jacotsu's avatar
Jacotsu committed
6
7
A simple CLI is provided to add, modify and delete admin users. `REDIS_URL` must be provided unless it is the default.
Also, `FLASK_APP=uus` must be set when not running in Docker (the Dockerfile already sets this).
Davide Depau's avatar
Davide Depau committed
8
9
10

Run `flask` to get the list of commands.

JackV's avatar
JackV committed
11
In the docker container you can run `uus` directly to get to the CLI, for example
Davide Depau's avatar
Davide Depau committed
12
13

```
JackV's avatar
JackV committed
14
$ docker exec -it uus_uus_1 uus adduser admin
Davide Depau's avatar
Davide Depau committed
15
Password: 
JackV's avatar
JackV committed
16
```