2024-12-07 22:51:38 +01:00
|
|
|
<p text-align="center">
|
|
|
|
<img src="src/static/img/favicon.png" alt="shortn logo" width="100px">
|
|
|
|
</p>
|
|
|
|
<h1 text-align="center"> shortn </h1>
|
|
|
|
|
2024-12-07 22:38:43 +01:00
|
|
|
HTML/CSS/JS Framework Free ✅ • Lightweight ✅ • Functional ✅ • No plaintext passwords ✅
|
2024-12-07 20:59:41 +01:00
|
|
|
|
2024-12-07 22:38:43 +01:00
|
|
|
|
|
|
|
Simple link shortener built with flask.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
|
|
git clone https://git.confest.im/boyan_k/shortn
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
```bash
|
2024-12-07 22:51:38 +01:00
|
|
|
python manage_users.py init # to create the database
|
|
|
|
python manage_users.py add # to add a user
|
|
|
|
>>> Name: admin
|
|
|
|
>>> Password: *****
|
|
|
|
>>> Again: *****
|
|
|
|
|
|
|
|
python manage_users.py list # to list users
|
|
|
|
python manage_users.py remove --username <username> # to remove a user
|
|
|
|
|
|
|
|
# Finally, running the app
|
|
|
|
python app.py
|
2024-12-07 22:38:43 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## TODOs
|
|
|
|
- [x] basic UI (to add links)
|
|
|
|
- [x] basic auth for UI
|
|
|
|
- [x] sqlite3 to store links
|
2024-12-07 22:51:38 +01:00
|
|
|
- [x] responsive? (sorta)
|
2024-12-07 22:38:43 +01:00
|
|
|
- [ ] dockerize
|