A simple Django url shortener built using GraphQL.
- Easy to use
- Simple GraphQL API
- QR Code Generation
- Fast (LRU caching using Redis)
- Data collections and visualization
- OS type
- Device type
- Browser type
- IP addresses
- Clicks per day
| # | Name | Usage |
|---|---|---|
| 1 | GraphQL | API |
| 2 | Redis | Caching |
| 3 | MySQL | Database |
| 4 | jQuery | Web frontend |
| 5 | Django | View logic |
Install Redis and MySQL for your *nix box.
Install requirements.
$ pip install -r requirements.txtCreate 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.
