Bitly-GraphQL:使用graphql在Django中实现的URL链接缩短器

时间:2021-04-09 16:12:50
【文件属性】:
文件名称:Bitly-GraphQL:使用graphql在Django中实现的URL链接缩短器
文件大小:23KB
文件格式:ZIP
更新时间:2021-04-09 16:12:50
Python 比特图 Django中URL链接缩短器的graphql实现。 使用的技术 Python 3.7以上 Django的 石墨烯 SQLite3 入门 在开始之前,您将需要创建一个virtualenv 只需运行: pip install virtualenv virtualenv source /bin/activate 然后使用以下命令将依赖项安装在requirements.txt文件中: pip install -r requirements.txt 使用以下命令启动服务器: python manage.py runserver 在路径路径/graphql上打开浏览器 使用以下命令进行graphql查询: 查询{urls {id fullUrl urlHash clicks createdAt}} 使用
【文件预览】:
Bitly-GraphQL-main
----Readme.md(1019B)
----manage.py(662B)
----requirements.txt(258B)
----shortener()
--------apps.py(150B)
--------tests.py(60B)
--------migrations()
--------admin.py(63B)
--------__init__.py(0B)
--------models.py(851B)
--------__pycache__()
--------views.py(217B)
--------schema.py(1KB)
----db.sqlite3(156KB)
----.gitignore(76B)
----shorty()
--------settings.py(3KB)
--------urls.py(928B)
--------__init__.py(0B)
--------__pycache__()
--------wsgi.py(389B)
--------schema.py(252B)

网友评论