Skip to content

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

Notifications You must be signed in to change notification settings

sacovo/link-shortener

Repository files navigation

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