Giter Club home page Giter Club logo

stremio-static-addon-example's Introduction

Stremio Static Add-on Example

This repository is an example of static add-ons for Stremio.

Testing locally

When testing locally, you can use a local server, but it's really important that you set the cache times to very low values (or 0) so that caching does not interfere with your development. Enabling CORS is also needed.

For example, with http-server from npm:

PORT=8081 http-server dist --cors -c-1

Using with GitHub Pages

You can test this example add-on by adding the GitHub Pages URL:

https://stremio.github.io/stremio-static-addon-example/manifest.json

as the Add-on Repository URL

Using with Now.sh

Now.sh is a simple to use (and free) website publishing utility.

  • Install now.sh:
npm i -g now
  • Clone Repository:
git clone --recursive http://github.com/Stremio/stremio-static-addon-example
cd stremio-static-addon-example
  • Publish with now.sh:
$ now
  • now.sh will typically print a message similar to:
> https://stremio-static-addon-example-ijshgdlgoe.now.sh [in clipboard] [3s]
> Deployment complete!

In which case, we'll use https://stremio-static-addon-example-ijshgdlgoe.now.sh/manifest.json as the Add-on Repository URL to load our add-on in Stremio

Using with Express

We've made a separate repository demonstrating how to use these static files with a Node.js Express Server. The example also shows how to make a locally hosted add-on accessible remotely with the help of the localtunnel module.

This example add-on can be found at stremio-express-static-addon.

Don't know where to add the Add-on Repository URL?

add-on-repository-url

stremio-static-addon-example's People

Contributors

jaruba 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.