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.
Install project requirements.
pip3 install -r requirements.txt
By creating a database
module, we created our database reading methods in Query
class,
which reads the sql queries from database/sql
files.
Using javascript fetch
to make http
calls to our backend system.
We created a simple rest-api
with Flask
framework in python and using MVC
architecture.
Use the following command to setup the project with Docker
.
docker compose up -d