Giter Site home page Giter Site logo

uliantsev-a / tamer-links Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.14 MB

Simple demonstration equivalent the bit.ly and other services for make short links

Python 59.77% Vue 9.52% CSS 9.29% JavaScript 21.43%
django-rest-framework docker vue full-stack test-task

tamer-links's Introduction

TamerLinks

The simple app for link reduction. It's similar to bit.ly
or other the service for making short links from original URLs

App include next option:

  • Celery worker periodic delete old resources (links)
    for this a settings.py in django have next options:

    # how often worker will start the clear script
    CLEANING_TASK_PERIOD = {
        'days': 30
        'seconds': 30
    }
    
    # how old time should be after create for delete link
    LIMIT_STORAGE = 3600 * 24 * 30
  • Backend app (from Django) with API endpoinds for create and getting links of current session.

    List links use pagination and access by session only.

  • web client on Vue.

  • Docker config for running the applications together

Fast way for running:

docker-compose build  
docker-compose up  

And connect to 80 port to gateway host of docker network or to nginx host:

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' tamerlinks_nginx

Configure

Before run necessary set settings.
Fill the .env file in project root directory.
Next variables is example for settings:

DEBUG=TRUE
DATA_SAVE_PATH=/tmp

DEBUG=TRUE
MYSQL_DATABASE=TamerLinks
MYSQL_USER=m_user
MYSQL_PASSWORD=some_pass
MYSQL_ROOT_PASSWORD=root
MYSQL_HOST=mysql
MYSQL_PORT=3306

If you have outside instance with DB, can disable mysql image in docker-compose.yml

Screenshot

tamer-links's People

Contributors

uliantsev-a avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.