Code Monkey home page Code Monkey logo

forge-dataviz-iot-reference-app's Introduction

This sample has been replaced by https://github.com/autodesk-platform-services/aps-iot-extensions-demo.

forge-dataviz-iot-reference-app

Application

This sample application demonstrates the functionality of the Forge Data Visualization extension. To learn more about the extension and the features it offers, see the Data Visualization Extension Developer's Guide.

Directory Structure

.
├── assets                  # Static svg and png files
├── client                  # Client-side code + configuration
├── docs                    # Additional documentation on how to upload a Revit model, setup Azure etc.
├── scss                    # SCSS files
├── server                  # Server-side configuration - router, sample synthetic/CSV data
├── shared                  # Config files shared between client and server
├── tools                   # Tools to use in your own webpack file
├── package.json
├── webpack.config.js
├── LICENSE
└── README.md

Setup

Prerequisite

To successfully run this Reference Application, you need a Forge account. If you do not have a Forge account, see Creating your Forge account.

Installing and Running the Reference Application

To install and run the Reference Application, see the Data Visualization Extension QuickStart.

Advanced Users

Customization options

If you'd like to add your own customization on top of the Reference Application baseline, you can modify the following files:

  • custom.scss : Override or add custom styling to your application.
  • client/pages/CustomPage.jsx : Create a custom page for your application.
  • server/CustomRouter.js : Override or add new API routes.

Further Reading

Developer's Guide - https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide API Reference - https://forge.autodesk.com/en/docs/dataviz/v1/reference/Core/

License

This sample app uses an MIT License

forge-dataviz-iot-reference-app's People

Contributors

benglin avatar harshita-adsk avatar hbandlamudi avatar paridhi-agr avatar petrbroz avatar shrikedoc avatar wallabyway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forge-dataviz-iot-reference-app's Issues

Missing dep

/client/pages/ReferenceApp.jsx imports useLocation from react-router, but this package is not referenced in your package.json file. Caused some small confusion when trying to install according to the QuickStart.

./node_modules/forge-dataviz-iot-react-components/client/components/BasicTree.jsx 107:16 loaders error?

simply including import { Viewer } from "forge-dataviz-iot-react-components"; in a empty new react project (npx create-react-app) I get this:

./node_modules/forge-dataviz-iot-react-components/client/components/BasicTree.jsx 107:16
Module parse failed: Unexpected token (107:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|         if (node.children.length > 0) {
|             return (
>                 <TreeItem
|                     id={`tree-node-${node.id}`}
|                     key={node.id}

Any idea how to fix according with the suggestion on https://webpack.js.org/concepts#loaders ?

ERR! code 1 npm ERR! path /home/ec2-user/forge-dataviz-iot-reference-app/node_modules/node-sass

Hello,

I hope all is well.

We are trying to install this application on an aws-ec2 Linux instance unfortunately we are running into the same issue over and over after installing all possible packages. Please see our steps and error message

1- git clone https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app.git into our ec2
2- cd forge-dataviz-iot-reference-app
npm install

error start here

WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm ERR! code 1
npm ERR! path /home/ec2-user/forge-dataviz-iot-reference-app/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js

Please let me know if you would need more information and thank you for the great work.

Setting Up an SQLite Data Adapter for Data Visualization Extension: I can’t connect my SQL data to model

After I adapted my SQL dataset according to my model, the sensor list just disappeared from localhost, and the SQL command is not generating the expected data (a table from sample.db). Default dataset was Hyperion but I changed it to my dataset sensors.

https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide/advanced_topics/sqlite_adapter/

I cant understand, What is the problem? What kind of table is expected to come from the SQL database?


1


2

Deploy in PROD missing

Hello guys,

We are trying to deploy this application in production but in the documentation, we don't have this part explained.

Can you please help us on this process (we are not familiar with webpack and all those things).

image

Thanks in advance.

Best regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.