This is a Django project created for demonstrating the implementation of shadow analysis.
These instructions will get you a copy of the project up and running on your local machine for development and deployment purposes.
What things you need to install the software and how to install them:
- Python (version 3.8)
A step by step series of examples that tell you how to get a development env running:
-
Download the repository as ZIP.
-
Move to the application directory.
-
Install ipykernel by the following command:
<pip install ipykernel>
OR<conda install -c anaconda ipykernel>
-
Create conda virtual environment
<conda create -n awsapplication python=3.8.5>
-
Activate the conda virtual environment
<conda activate awsapplication>
-
Install Jupyter Notebook
<pip install notebook>
-
Update Kernel into Jupyter Notebook
<python -m ipykernel install --user --name awsapplication --display-name awsapplication>
-
Install the dependencies
pip install -r webapp/requirements.txt
The
requirements.txt
file should contain the following packages:django==3.2
numpy==1.21.2
pvlib==0.8.0
mapbox==0.18.0
matplotlib==3.4.3
pymongo[srv]==4.0.1
rasterio
plotly==5.3.1
python-dotenv==0.19.2
django-cors-headers==3.8.0
pandas==1.3.3
scipy==1.7.3
-
Apply the migrations python manage.py makemigrations python manage.py migrate
-
Start the development server python manage.py runserver
-
Visit
http://localhost:8000
in your browser to view the project.