Skip to content

App for shortening and managing URLs. Study case in flask usage.

Notifications You must be signed in to change notification settings

lennardstam/lst-am

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lst.am

Overview

lst.am is an self hosted URL shortener made in Flask.

Demo

demo.lst.am
Database will be restored daily.

Username: [email protected]
Password: admin

Screenshot

Features

  • URL shortener
  • Customized short URL's and length
  • Link visit stats
  • User links overview
  • Admin panel for user management
  • Password recovery

Technical Info

  • Python 3, Javascript, JQuery, HTML, CSS
  • Framework: Flask
  • DB: SQLite
  • Libs: SQLAlchmey, JWT
  • Docker
  • Docker-compose

Configuration

Update settings.py with your own mail server and MySQL credentials.

Installation/Setup

Docker

Clone git clone https://github.com/lennardstam/lst-am.git & cd lst-am
Build the image docker build /path/to/lst-am/ -t lst-am
To run the container: docker run -it -p 5000:5000 lst-am.
For docker-compose, run docker-compose up -d

Manual(from source)

Clone git clone https://github.com/lennardstam/lst-am.git & cd lst-am
(Optional) Install virtualenv (optional but recommended)
virtualenv -p python3 env
source env/bin/activate
Install dependencies: pip3 install -r requirements.txt
python3 run.py (It runs Flask app using Werkzeug. Gunicorn not yet added)

Access

Visit 127.0.0.1:5000 in your browser to use the app
Use the following credentials:
Username: [email protected]
Password: admin

Notes

This project is in early development. Therefore features and configuration settings are limited
Logging is not yet available.
Role based user access is static. User with id 1, is admin.
Guest usage is not possible yet

About

App for shortening and managing URLs. Study case in flask usage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published