This project has been completed using Python 3.7
To run the app please go to the project root directory and execute the below commands in the terminal.
Create a Python Virtual Environment using the venv module
python3 -m venv venv
Activate the Python Virtual Environment in terminal
source venv/bin/activate
Install the necessary libraries for the app
pip install -U pip
pip install wheel
pip install -r requirements.txt
Start server to run the application
python manage.py runserver
- Get the list of tweets with the given hashtag
$ curl -H "Accept: application/json" -X GET http://localhost:xxxx/hashtags/Python?limit=40
- Get the list of tweets that the user has on his feed
$ curl -H "Accept: application/json" -X GET http://localhost:xxxx/users/twitter?limit=20
Verify functional behavior of the application
python manage.py test