Skip to main content

Rutgers University URL Shortener

Project description

shrunk

A URL shortener for Rutgers University. For more information, contact Rutgers Open System Solutions.

Uses MongoDB. Python code targets Python 3.6.

Virtual Environment

Python dependencies are enumerated in pip.req. You can set up an appropriate virtual environment with the following:

$ virtualenv --no-site-packages --python="python3" virtualenv
$ source virtualenv/bin/activate
$ pip install -r pip.req

Documentation

After setting up the virtual environment, you can generate HTML documentation by running ./build_docs.sh from the root of the project. The documentation will be placed in ./docs_out.

Features

Web Application

  • Log in with a Rutgers NetID
  • Create a short URL from a long URL
  • Given a NetID, what URLs have they created?
  • Analytics on visits

URL Shortening Service

  • Given a short URL, redirect to the long URL
  • Track visits to the short URL
  • Track popularity and number of clicks

Distribution steps

assuming you're in the root of the git repo

  1. change the version in shrunk/setup.py and shrunk_test/setup.py
  2. git tag <your version> -m "some description/changelog"
  3. cd shrunk/
  4. rm -rf dist/ shrunk.egg-info
  5. python3 setup.py sdist puts a tar in dist/
  6. python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* to upload to test pypi
  7. python3 -m twine upload dist/* to upload to pypi WARNING: Don't use bdist_wheel. bdist_wheel refuses to exclude config.py, so if you have one in here for testing, it will package it and give our secret and privs out to the public WARNING: make sure config.py is not in the package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shrunk-1.1.2.tar.gz (202.6 kB view details)

Uploaded Source

File details

Details for the file shrunk-1.1.2.tar.gz.

File metadata

  • Download URL: shrunk-1.1.2.tar.gz
  • Upload date:
  • Size: 202.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

File hashes

Hashes for shrunk-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f3eb19ac6a81b64248bf758fd367fcbf4336e9f07597f43da5f51a94f7826b66
MD5 ef311991f70d695221dcfcd0a2345d91
BLAKE2b-256 c6ece772fe3d281a5f4655cd0089e2da1f5839a7c7f809c487848ad3bfd9d751

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page