Closed ThaDeveloper closed 5 years ago
git clone -b ft-document-api-swagger-161966908 https://github.com/andela/ah-infinity-stones
$ cd ah-infinity-stones
virtualenv -p python3 venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
export DATABASE_USER='user' export DATABASE_PASSWORD=pass' export HOST='localhost' export PORT='5432' export DATABASE_TEST='ah_test' export EMAIL_HOST_USER='username' export EMAIL_HOST_PASSWORD='pass' export SECRET_KEY='key-is-secret'
Activate the env variables by $source .env.
$source .env
$ python3 manage.py migrate
$ python3 manage.py runserver
http://127.0.0.1:8000
POST /api/users/
POST /api/users/login
#161966908
Code Climate has analyzed commit 0d0ef5e8 and detected 5 issues on this pull request.
Here's the issue category breakdown:
View more on Code Climate.
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
git clone -b ft-document-api-swagger-161966908 https://github.com/andela/ah-infinity-stones
and$ cd ah-infinity-stones
virtualenv -p python3 venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
to install the dependenciesActivate the env variables by
$source .env
.$ python3 manage.py migrate
$ python3 manage.py runserver
http://127.0.0.1:8000
through your browser and test by:POST /api/users/
- Create account with AH Check your email and activate the account. Login with the endpoint below:POST /api/users/login
- Login to AHWhat are the relevant pivotal tracker stories?
#161966908
Screenshots