https://github.com/amiraflak/database-lab
Database Lab - Spring 2023
https://github.com/amiraflak/database-lab
database mssql sql t-sql
Last synced: about 1 month ago
JSON representation
Database Lab - Spring 2023
- Host: GitHub
- URL: https://github.com/amiraflak/database-lab
- Owner: AmirAflak
- Created: 2023-05-17T10:24:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T15:36:49.000Z (over 2 years ago)
- Last Synced: 2025-01-19T05:37:19.187Z (about 1 year ago)
- Topics: database, mssql, sql, t-sql
- Language: Python
- Homepage:
- Size: 559 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## URL Shortener
This is a URL shortener project built with Microsoft SQL Server, Python, and Tableau. It allows you to create short URLs and store them in a database. The project includes SQL stored procedures to manage the database, a Python script to interact with the database, and Tableau for visualizing the URLs stored in the database.
## Features
* Generate short URLs for your long URLs.
* Store URLs in a Microsoft SQL Server database.
* Automatically delete expired URLs using Job Agents.
* Interact with the database using a Python script and pyodbc.
* Visualize the URLs using Tableau.
## Installation
1. Clone the repo
```sh
git clone https://github.com/AmirAflak/url-shortener.git
```
2. Navigate into the project directory:
```sh
cd url-shortener
```
3. Install the project dependencies:
```sh
pip install -r requirements.txt
```
4. Set up the SQL database:
* Execute the SQL scripts inside `queries` directory to create the necessary table and stored procedures.
5. Run the Python script:
```sh
python main.py
```