Skip to content

RajaPalla/Demo-AngelList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo-AngelList

Demo project with AngelList data

Setup Django Backend

Setup virtualenv for this project

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

Import data into MongoDB for Django

(angellist_demo_env)$ cd backend/angellist_demo
(angellist_demo_env)$ python manage.py shell
>>> execfile('batch_import_django.py')

Start Django

Activate the virtualenv (if it is not activated yet)

$ source backend/angellist_demo_env/bin/activate

Start Django

(angellist_demo_env)$ cd backend/angellist_demo
(angellist_demo_env)$ python manage.py runserver [::]:8000

Sipmle test if server running

$ curl localhost:8000/startups.json
$ curl localhost:8000/startups/190752.json

About

Demo project with AngelList data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.9%
  • Python 22.8%
  • HTML 18.9%
  • Batchfile 1.3%
  • Ruby 1.1%
  • CSS 1.0%
  • Shell 1.0%