A Django and GraphQL based URL shortener
Test Link - https://octrixshortener.herokuapp.com/
validate = URLValidator()
try:
validate(self.full_url)
except ValidationError as e:
raise GraphQLError('invalid url')
- Clone the repository -
git clone https://github.com/Shivansh2407/octr.ix.git
- Install the requirements -
pip install -r requirements.txt (Python 2)
orpip3 install -r requirements.txt (Python 3)
- Run the Server -
python manage.py runserver
- Go to /graphql endpoint to create the Hash - 127.0.0.1:8000/graphql
- Access the Hashed Link by adding the Hash at the end like - 127.0.0.1:8000/{Hash}