Language | Framework | Platform | Name | Author |
---|---|---|---|---|
Python | Django | Azure Web App, Virtual Machine | Visualize LiDAR Scanner Data in 3D Space | Anni Dai, Chenrui Lei. Lin Tong |
Here's an overview of the files you'll find in this Git repository
\app\__init__.py
\app\forms.py
\app\models.py
\app\tests.py
\app\views.py
\app\static\app\content\
\app\static\app\fonts\
\app\static\app\scripts\
\app\templates\about.html
\app\templates\contact.html
\app\templates\index.html
\app\templates\layout.html
\app\templates\login.html
\app\templates\loginpartial.html
\app\templates\vtk_demo.html
\python_webapp_django\__init__.py
\python_webapp_django\settings.py
\python_webapp_django\urls.py
\python_webapp_django\wsgi.py
Main sources for the application. Pages index, about, contact, layout and static contents and scripts include bootstrap, jquery, modernizr and respond are genrated by Azure. The main.js in \app\static\app is created for Webpack to bundle all ES6 Javascript. The vtk_demo.js in \app\static\app\scripts contains the front-end 3D view code The vtk_demo.html is the main page that can be accessed through https://mmdatavisualization.azurewebsites.net/
For a demo, click on the Link below: https://mmdatavisualization.azurewebsites.net/?fileURL=https://mmdatavisualization.azurewebsites.net/static/app/img/map.vtp
\manage.py
Local management and development server support. Use this to run the application locally, synchronize the database, etc.
\static\
Generated by run manage.py collectstatic
, is been used by server to serve static data.
\db.sqlite3
Default database. Includes the necessary tables for the application to run
\python_webapp_django.pyproj
Project files for use with [Python Tools for Visual Studio].
\webpack.config.js
Module bundler to use vtk and transform ES6 to ES5 so that it can be processed by the browser. Use this to bundle Javascript files.
\requirements.txt
External packages needed by this application. The deployment script will pip install the packages listed in this file.
\FormatScript
Contains python script that can parse depth image numpy array data into a 3D model and show it in a local interactive window.
Some files exist on the server but are not added to the git repository.
wwwroot\static\web.config
This enables the server to serve .vtp files
- Have Git, Node.js (9.8.0), python 3.5 installed
- clone the repo
- setup python virtual environment
- activate virtual environment
- run
pip install -r requirement.txt
- run
npm install
- run
npm run build
- wait for code to compile
- run
python manager.py runserver
runnpm run build
every time when changes are made in js file that's imported by main.js
Whenever a new script in ES6 is added, import it in main.js. It will automatically compiled through webpack and been
included in the build.js which is imported in vtk_demo.html. When npm run build
is been called.
- run
npm run build:release
- run
manager.py collectstatic
- commit and push to github The Azure will update automatically if the code is been pushed to master branch
See LICENSE.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.