Demo project with AngelList data
Install Python virtualenv if you don't have it. It’s highly recommended to use virtualenv so that this python project setup won't conflict with others.
$ pip install virtualenv
Create virtualenv for angellist_demo
$ cd backend/
$ virtualenv angellist_demo_env
Activate the virtualenv
$ source angellist_demo_env/bin/activate
You should notice that the python and pip inside angellist_demo_env are being used now:
(angellist_demo_env)$ which python
Demo-AngelList/backend/angellist_demo_env/bin/python
(angellist_demo_env)$ which pip
Demo-AngelList/backend/angellist_demo_env/bin/pip
Install Django MongoDB Engine:
(angellist_demo_env)$ pip install git+https://github.com/django-nonrel/[email protected]
(angellist_demo_env)$ pip install git+https://github.com/django-nonrel/[email protected]
(angellist_demo_env)$ pip install git+https://github.com/django-nonrel/[email protected]
Install Django Rest Framework:
(angellist_demo_env)$ pip install djangorestframework
(angellist_demo_env)$ pip install markdown
(angellist_demo_env)$ pip install django-filter
(angellist_demo_env)$ cd backend/angellist_demo
(angellist_demo_env)$ python manage.py shell
>>> execfile('batch_import_django.py')
$ source backend/angellist_demo_env/bin/activate
(angellist_demo_env)$ cd backend/angellist_demo
(angellist_demo_env)$ python manage.py runserver [::]:8000
$ curl localhost:8000/startups.json
$ curl localhost:8000/startups/190752.json