Skip to content

karolina-kozicka/URL-Shortener

Repository files navigation

URL-Shortener

CircleCI

General information

URL-Shortener - Web application to shorten links with possibility to define expiration date and password to protect your content.

Most of code is written in Python/Django.


Setup

Project can be run in local (local.yml) or production (production.yml) mode.

Requirements

To setup project it is required to have Docker and Docker Compose installed on your machine.

Build

$ docker-compose -f <mode>.yml build

Database migrations

$ docker-compose -f <mode>.yml run django python app/manage.py migrate

Creating superuser

Optionally you might also want to create django superuser.

$ docker-compose -f <mode>.yml run django python app/manage.py createsuperuser

Run tests

$ docker-compose -f <mode>.yml run django python app/manage.py test shortener

Fixtures data

$ docker-compose -f <mode>.yml run django python app/manage.py loaddata celery_beat

celery_beat file contains periodic tasks definitions.

Start server

$ docker-compose -f <mode>.yml up

It will start all containers on specified environment.

URL-Shortener is now available on localhost:8000


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published