Giter VIP home page Giter VIP logo

power-grid-fdm-test's Introduction

fdm-test

This repo shows an example of how to use advanced features of FDM. Since some of these features are experimental, they might break in the future.

Requirements

  1. Install node > 14.x
  2. Run npm install
  3. Enable experimental CLI commands to run the example commands shown later: export ENABLE_EXPERIMENTAL_CMDS=true
  4. Run npm run configure your-project-name to rename this template

Sign-in

  1. Sign-in to your project by running npm run sign-in

How to setup storage

The storage definition is found in src/dms.yml Run the following commands to apply it:

  1. npm run upsert-space
  2. npm run upsert-storage

How to setup an API

There are two files neccessary to create a queryable GraphQL API. It's the schema defined in src/api.graphql and then there is the src/bindings.yml file to define the implementation of this schema. Run the following commands to create an API and version.

  1. npm run upsert-api
  2. npm run upsert-api-version

Generate SDK & docs

Docs:

  1. npm run generate-docs

Python SDK:

  1. npm run generate-python-sdk

JS SDK:

  1. npm run generate-js-sdk

Run queries

Navigate here after replacing your-project and your-cluster to find a query explorer:

https://cog-appdev.fusion.cognite.com/[your-project]/data-models/fdm-test/latest/data/query-explorer?cluster=[your-cluster]

power-grid-fdm-test's People

Contributors

tapped avatar

Watchers

James Cloos avatar  avatar

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.