Closed rkemmy closed 5 years ago
Code Climate has analyzed commit 89574e76 and detected 0 issues on this pull request.
View more on Code Climate.
The name of this PR is confusing. Also what is the difference of this PR and what Justin did?
Sorry about the title. I have fixed it. Thanks for pointing it out. The code is similar to Justin's because he integrated jwt for registration before I created a PR and I need to complete the story.
What does this PR do?
Implement jwt authentication
Description of Task to be completed?
How should this be manually tested?
git clone -b ft-jwt-authentication-161966909 https://github.com/andela/ah-infinity-stones and $ cd ah-infinity-stones
virtualenv -p python3 venv
to create a virtual environment andsource venv/bin/activate
to activate itpip3 install -r requirements.txt
to install the dependencies Setup environment variables. Copy all from below and paste them into the .env file. Update the values to your choice.Activate the env variables by running
source .env
.python3 manage.py makemigrations
thenpython3 manage.py migrate
python3 manage.py runserver
http://127.0.0.1:8000/api/users
through Postman, provide inputs in the following format and submit.{ "user": { "username": "remmy", "email": "remmy@test.com", "password": "Password@123"
} }
Screenshot