Skip to content

sacovo/link-shortener

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 24, 2020 21:39
August 8, 2023 10:04
June 24, 2020 21:39
June 24, 2020 21:39
June 24, 2020 21:39
June 24, 2020 21:39
June 24, 2020 21:39
August 16, 2020 20:07
June 24, 2020 21:39
June 24, 2020 21:39
June 24, 2020 21:39
June 24, 2020 21:39
June 24, 2020 21:39
July 10, 2020 21:50
July 10, 2020 21:50
June 24, 2020 21:39
July 10, 2020 21:50
June 24, 2020 21:39

Link shortener

Works like bit.ly, but has the ability to customize preview images and other open graph tags. So you can customize how a link looks if you share it on facebook, twitter and co.

Setup

Clone repository

docker-compose up -d 

Deployment

docker-compose -f docker-compose.prod.yml up -d
docker-compose -f docker-compose.prod.yml exec web python manage.py migrate
docker-compose -f docker-compose.prod.yml exec web python manage.py collectstatic --no-input
docker-compose -f docker-compose.prod.yml exec web python manage.py createsuperuser

For production copy .env.dev to .env.prod and change passwords and keys. Change trafik labels to fit domain.

Structure

Configuration is in the top-directory: settings.py, urls.py

docker-compose.prod.yml is prepared for use with the traefik load balancer.

About

Link shortener based on django, with custom open-graph tags for shortened links.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published