Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

oyoyoa/TwitterClone

Repository files navigation

README

env

  • python 3.6.x
    • pipenv
  • redis

setup

pipenv run pipenv install
pipenv run python manage.py migrate

run

pipenv run python manage.py runserver

create user

pipenv run python manage.py createsuperuser

check api schema

# after run server
open localhost:8000/schema/ # need session login

httpie

http post http://localhost:8000/api/register/dummy/
http post http://localhost:8000/api/auth/user/ email=test@test.com password=testuser

http post http://localhost:8000/api/auth/refresh/ token={token}
http post http://localhost:8000/api/auth/verify/ token={token}

http http://localhost:8000/api/user/ Authorization:"JWT {token}"

wscat

install

npm install -g wscat

run

wscat -c localhost:8000/ws/room/test/ -H "Authorization:JWT {token}"