https://github.com/barabum0/flask-url-shortener
Simple URL shortener written on Python!
https://github.com/barabum0/flask-url-shortener
flask html html-css-javascript javascript js python python3 sql sqlite sqlite3 url-shortener yaml
Last synced: 12 months ago
JSON representation
Simple URL shortener written on Python!
- Host: GitHub
- URL: https://github.com/barabum0/flask-url-shortener
- Owner: barabum0
- License: apache-2.0
- Created: 2022-09-21T16:05:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T22:38:37.000Z (over 3 years ago)
- Last Synced: 2023-05-06T10:26:38.807Z (about 3 years ago)
- Topics: flask, html, html-css-javascript, javascript, js, python, python3, sql, sqlite, sqlite3, url-shortener, yaml
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple URL shortener written on Python using Flask Framework!
 
## Showcase
#### Main page

#### Link does not exist page

##### I don't very skilled in frontend, so feel free to do pull request!
## Setup:
Run this commands one by one
```
git clone https://github.com/barabum0/flask-url-shortener
cd flask-url-shortener
pip install -r requirements.txt
```
And... It's done!
## Run:
Run this command in app.py directory
```
flask run
```
## Config
There is some options, that you can change. They're located in config.yml
```yaml
domain: localhost:5000/ #Domain, that will be given to user, when he will short link + link code.
```
```yaml
link_length: 5 #Shorten link length
```
```yaml
check_unique: 1 #If redirect link is in database, it won't create new
```