Giter Site home page Giter Site logo

lumiastream-api-demo-js's Introduction

Lumia Stream API Demo

Check out the full tutorial at dev.lumiastream.com

Summary

This is a complimentary demo that will show the various ways to use Lumia Streams Developers API

How to use

  1. Clone the repository git clone https://github.com/lumiastream/lumiastream-api-demo-js.git
  2. CD into the repo and Run npm install or yarn
  3. Start Lumia Stream and Make sure the Developers API is on by going to Settings > Advanced > Enable Developers Api
  4. After the Developers API is enabled, you'll be presented with a token in Lumia Stream. Copy it
  5. Open up main.js in the demo api and paste the api token to token on line 3
  6. Run the demo api with npm start or yarn start

Visit the docs above to see all the deveopers api can do

lumiastream-api-demo-js's People

Contributors

ahadcove avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

muffo99

lumiastream-api-demo-js's Issues

API is missing CORS headers

Hello!

Currently Lumia REST API lacks CORS headers.
It's an issue if we want to use it from a web app.

Browsers require CORS to accept connections from a given domain to allow it to connect to.
Browsers have other restrictions like cross-security stuff which technically would avoid a secured domain to connect with an unsecured one but on most browsers there's an exception on localhost/127.0.0.1 (except for some Safari and Brave if shield is enabled) so if CORS headers were added we could technically connect to Lumia API.

Basically it would be nice if Lumia was sending this in the response headers:
Access-Control-Allow-Origin: *

Have a good day :)

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.