Closed codeplus254 closed 5 years ago
Code Climate has analyzed commit 16480a87 and detected 1 issue on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 1 |
View more on Code Climate.
@codeplus254 thanks for building on the email code. A wise man once said, don't kill the messenger so the author haven logo is so lifely. @PromasterGuru keep good design always and let us yoyo it moving along.
What does this PR do?
Implement email verification feature.
Description of the task to be completed
How should this be manually tested?
git clone -b ft-email-sent-user-upon-registration-161966912 https://github.com/andela/ah-infinity-stones and $ cd ah-infinity-stones
Create and activate virtual env
virtualenv -p python3 venv
andsource venv/bin/activate
pip3 install -r requirements.txt
to install the dependencies.create a postgres database
Setup environment variables. Copy all from below and paste them into the .env file. Update the values to your choice.
export DATABASE_NAME='authorsHaven' export DATABASE_USER='RONNY' export DATABASE_PASSWORD='postgres' export DATABASE_HOST='' export DATABASE_PORT='5432' export DB_SECRET='my secret my choice' export EMAIL_HOST_USER='Infinites' export EMAIL_HOST_PASSWORD='st1fflers' export SECRET_KEY='mysecret'
Activate the environment variablessource .env
Run migrations
python3 manage.py migrate
Run app
python3 manage.py runserver
Access
http://127.0.0.1:8000/api/users/
through Postman, provide inputs in the following format and submit.{ "user": { "username": "username44", "email": "username@user.com", "password": "@Password321" } }
-Go to the email you registered with and click on the activation link.What are the relevant pivotal tracker stories?
#161966912
Screenshots