asaldelkhosh / URL-Shortener

Creating a URL shortener with Python and SQL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener

Creating a URL shortener with Python and SQLite3. To setup the project you need to install project requirements. After that you can setup project by executing python3 main.py. You will have your HTTP server on localhost:3000. Just try to open it on your browser.

Requirements

Install project requirements.

pip3 install -r requirements.txt

Database

By creating a database module, we created our database reading methods in Query class, which reads the sql queries from database/sql files.

Frontend

Using javascript fetch to make http calls to our backend system.

Backend

We created a simple rest-api with Flask framework in python and using MVC architecture.

Docker

Use the following command to setup the project with Docker.

docker compose up -d

About

Creating a URL shortener with Python and SQL.


Languages

Language:JavaScript 38.6%Language:Python 34.3%Language:HTML 19.8%Language:CSS 6.6%Language:Dockerfile 0.7%