Code Monkey home page Code Monkey logo

fix.it's Introduction

fix.it/

Node.js Platforms License Viewer oAuth2 Data-Management OSS Model-Derivative

Description

This code is derived from a sample that is part of the Learn Forge tutorials. It has been modified by our team, 134stillAlive for Smarthack 2020. We participated as contestants for Autodesk, with the theme "How could we use cloud computing in BIM to help your city develop into a smart city?".

Our solution is an app aims to load a model while using sensors connected to a server. You can use the GUI then to join the elements in the viewer with the sensors, and monitor the data that the server receives. The changes are reflected in a graph, and in the viewer (the elements color changes according to the data received from the joined sensor). This is just a demo, and it simulates the data using random values, but in a real world scenario this setup can be used for monitoring many parameters (water, electricity, waste management).

Example with mock data

example

Setup

To use this sample, you will need Autodesk developer credentials. Visit the Forge Developer Portal, sign up for an account, then create an app. For this new app, use http://localhost:3000/api/forge/callback/oauth as the Callback URL, although it is not used on a 2-legged flow. Finally, take note of the Client ID and Client Secret.

Run locally

Install NodeJS.

Clone to project, install the required packages, and modify the code with your cliend ID and client secret. Also, you may want to change the URN so the viewer will render a different file (the file needs to be translated before it can be used in the application, for this see the Autodesk Model Derivative API).

npm install
npm start

Open the browser: http://localhost:3000.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Augusto Goncalves @augustomaia, Forge Partner Development

The original code was a sample from Autodesk Learn Forge, that was modified by the 134stillAlive team for Smarthack 2020.

fix.it's People

Contributors

qfl1ck32 avatar

Watchers

 avatar

Forkers

smitoi

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.