A Sample Django search repository app using Github API v3 and uWSGI for assignment purpose.
Make Sure you have Linux/OSX Environment.
Follows Django best practices as much as possible.
-
Install uWSGI on Debian 8.
sudo apt-get update && apt-get upgrade sudo apt-get install uwsgi
-
Install uWSGI on OSX.
brew install uwsgi
-
git clone
this repo into any directroy.cd /path/to/your/directory/ git clone https://github.com/Shahroz/GitHubNavigator.git
-
Create a virtualenv with the latest
pip
,setuptools
, anddjango
packages.cd /path/to/your/directory/GitHubNavigator-master virtualenv env source env/bin/activate pip install -r requirements.txt
-
Finally Serve Django Project with uWSGI.
uwsgi --socket /path/to/your/directory/GitHubNavigator-master/GitHubNavigator.sock --http :8000 --module GitHubNavigator.wsgi:application --enable-threads --home env --vacuum --master
-
Check it out!
http://localhost:8000/GitHubNavigator/navigator?search_term="<search here for repository>"