Skip to content

Latest commit

 

History

History
83 lines (56 loc) · 1.97 KB

README.md

File metadata and controls

83 lines (56 loc) · 1.97 KB

Explore the Kepler Exoplanets

Lighthouse Labs final project: Data visualization of the Kepler system using threeJS and Django.

Getting Ready

Python Installation

You should install Python v3.4.3. Run the following to check if it is installed (and to check which version):

python --version

If Python is not installed, click here for instructions on how to install.

Install pip packages installer by visiting the official site.

Virtualenv Installation (NOTE: only if you are not using Vagrant)

Virtualenv enables multiple side-by-side installations of Python, one for each project.

pip install virtualenv

Once you have virtualenv installed, just fire up a shell and create your own environment:

mkdir myproject
cd myproject
virtualenv env

Now, whenever you want to work on a project, you only have to activate the corresponding environment:

Unix Systems: source env/bin/activate

To exit the virtual environment:

deactivate

##While in virtualenv

Installing Packages

After you have installed Python and Pip (or Virtual Env), run the following code to "bundle install" all the packages:

pip install -r requirements.txt

If you want to add any packages, do the following:

pip install pkg_name
pip freeze

Copy exactly the line of the package you just installed from the Terminal into this requirements.txt

Running the Project

###Set up the Database

python manage.py migrate
python manage.py migrate kepler_exoplanets
./manage.py generate_data

To run the server, type the following into your terminal:

python manage.py runserver

Go to localhost:8000 in your browser.

Can I use this code?

Absolutely! We want you to find value in what we've produced, so feel free to download the code, or bits of it, and have fun with it!

Enjoy! From Anita, Fabien, Jennifer, and Lars