Code Monkey home page Code Monkey logo

pyshort's Introduction

PRINCIPE

PyShort à un raccourcisseur d'URL compatible avec une connexion sécurisé reposant sur une base SQL. Elle se destine principalement au programmeur souhaitant disposé d'un système pour raccourcir les URL à moindre coût.

INSTALLATION & MISE A JOUR

Si PyShort est déjà installé, commencer par supprimer l'image :
docker rm -f pyshort

puis télécharger la dernière version :

docker pull f80hub/pyshort:latest

enfin créer un répertoire (par exemple /root/data) pour héberger la base de données et un répertoire /root/certs pour stocker le certificat du serveur si vous souhaitez une connexion sécurisée (fichiers fullchain.pem et privkey.pem) puis installer l'image docker simplement par :

docker run --restart=always -v /root/datas:/app/datas -v /root/certs:/app/certs -p 443:443 --name pyshort -d f80hub/pyshort:latest domain_server 443 ssl

le paramètre SSL doit être ajouté si vous souhaitez une connexion sécurisée.

FONCTIONNEMENT

La réduction se fait via l'usage de l'API short. Celle-ci est utilisable en
GET /short?url=votre_url&format=text|qrcode
ou en POST en plaçant votre url dans le corps.

En précisant le format text ou qrcode, l'API répond par une url ou directement par une image au format PNG correspondant au QRCode de l'url

pyshort's People

Contributors

shifumix avatar f80dev avatar hhoareau 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.