All Projects → xemeds → tiny0

xemeds / tiny0

Licence: MIT license
Custom URL shortener in Flask.

Programming Languages

python
139335 projects - #7 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to tiny0

go url shortener
Shortify - URL Shortner in go
Stars: ✭ 18 (-70%)
Mutual labels:  url-shortener
ShortURL-Services-List
A list of 600+ URL shorteners (i.e goo.gl, bit.ly)
Stars: ✭ 32 (-46.67%)
Mutual labels:  url-shortener
node-url-shortener
URL Shortener in Base58 using Node.js, Express, Sequelize, Mocha and Bootstrap
Stars: ✭ 21 (-65%)
Mutual labels:  url-shortener
mnmlurl-extension
[DEPRECATED] 💁 Browser extension for Minimal URL - Modern URL shortener with support for custom alias & can be hosted even in GitHub pages
Stars: ✭ 21 (-65%)
Mutual labels:  url-shortener
redir
🧭 Full-featured, self-hosted URL shortener.
Stars: ✭ 61 (+1.67%)
Mutual labels:  url-shortener
goalie-url-shortener
An implementation of go/ vanity-urls with LDAP support that makes it simple to access internal web assets on a coorporate network.
Stars: ✭ 16 (-73.33%)
Mutual labels:  url-shortener
reducio
❱ 🐇 URL shortener service is written in Scala using Akka-Http and Redis ❰
Stars: ✭ 69 (+15%)
Mutual labels:  url-shortener
url-shortener
A URL Shortener Application built with Node.js, Express and MongoDB
Stars: ✭ 16 (-73.33%)
Mutual labels:  url-shortener
1pt
A URL shortener with protection against malicious redirects
Stars: ✭ 20 (-66.67%)
Mutual labels:  url-shortener
KuttSharp
🔪 .NET Package for kutt.it url shortener
Stars: ✭ 29 (-51.67%)
Mutual labels:  url-shortener
nnmm
A super tiny pastebin/url minifier "microservice"
Stars: ✭ 77 (+28.33%)
Mutual labels:  url-shortener
gShort
URL Shortener without all the crap
Stars: ✭ 80 (+33.33%)
Mutual labels:  url-shortener
shorty
URL shortener available as library, microservice (even containerized), aws lambda, and azure function
Stars: ✭ 31 (-48.33%)
Mutual labels:  url-shortener
YOURLS
🔗 The de facto standard self hosted URL shortener in PHP
Stars: ✭ 9,007 (+14911.67%)
Mutual labels:  url-shortener
secusu
SЁCU is a public API to store self-destructing data payloads with url shortener and handle anonymous chat-rooms.
Stars: ✭ 24 (-60%)
Mutual labels:  url-shortener
ksana.in
✂️ Layanan pemendek tautan yang mudah, gratis & tanpa iklan
Stars: ✭ 186 (+210%)
Mutual labels:  url-shortener
bingus.link
A free, private URL shortener
Stars: ✭ 19 (-68.33%)
Mutual labels:  url-shortener
Becoditive-API
The official API of beCoditive with many endpoints like memes, animals, image manipulation, url shortner, etc.
Stars: ✭ 14 (-76.67%)
Mutual labels:  url-shortener
em-shorty
Another URL shortener based on Event Machine and rack-fiber_pool
Stars: ✭ 56 (-6.67%)
Mutual labels:  url-shortener
urlzap
⚡️ Your own static URL shortener
Stars: ✭ 57 (-5%)
Mutual labels:  url-shortener

Currently hosted at: https://tiny0.herokuapp.com

How it works

Each URL that is submitted goes through a simple check for validity and/or added http:// before it to redirect successful. After that, a base 64 string is generated and added to a SQLite database with the corresponding URL that was submitted. The user is then given a short URL that is formatted as: WEBSITE_DOMAIN/token, the token being the base 64 string. Whenever this URL is visited the user will get redirected to the tokens corresponding URL in the database.

Run locally

Highly encouraged to create a python environment first.

Clone the repository:

$ git clone https://github.com/xemeds/tiny0.git

Move into the cloned folder and install the required libraries:

$ cd tiny0
$ pip install -r requirements.txt

After that run with:

$ python run.py

Visit the below URL to view the flask app:

127.0.0.1:5000

NOTE: When running locally all redirects will also be local.

Deploying

If you do not have a dedicated server, I highly recommend using Linode, Heroku or PythonAnywhere to host your application.

Before deploying, make sure to set the following environment variables:

$ export WEBSITE_DOMAIN=
$ export SECRET_KEY=
$ export DEBUG=
$ export SQLALCHEMY_DATABASE_URI=

If not they will default to the following values:

WEBSITE_DOMAIN=127.0.0.1:5000
SECRET_KEY=SECRET_KEY
DEBUG=true
SQLALCHEMY_DATABASE_URI=sqlite:///database.db

License

This project is under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].