Skip to content

A simple Django url shortener built using GraphQL.

License

Notifications You must be signed in to change notification settings

mentix02/shorty

Repository files navigation

shorty

A simple Django url shortener built using GraphQL.

stats

Features

  1. Easy to use
  2. Simple GraphQL API
  3. QR Code Generation
  4. Fast (LRU caching using Redis)
  5. Data collections and visualization
    • OS type
    • Device type
    • Browser type
    • IP addresses
    • Clicks per day

Technology Used

# Name Usage
1 GraphQL API
2 Redis Caching
3 MySQL Database
4 jQuery Web frontend
5 Django View logic

Installation

Install Redis and MySQL for your *nix box.

Install requirements.

$ pip install -r requirements.txt

Create a MySQL database with the name shorty and run the install.sh script from the project root directory and enter the relevant information.

$ mysql -u root -p
mysql> CREATE DATABASE shorty; exit;
$ ./install.sh
Generating secret key... done.
Database username: root
Database password: ****
Making migrations... done.
Migrating... done.

Run the server and visit the url in your browser.

$ ./manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
June 05, 2020 - 00:12:28
Django version 3.0.7, using settings 'shorty.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Usage

recording

About

A simple Django url shortener built using GraphQL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published