Skip to content

Spotbit website #22

Open
Open

Description

@watersnake1

Blockchain commons currently controls the domain spotbit.info, but it is only set up to simply redirect to the github repo page. Eventually Spotbit will need a proper website, including all documentation, a list of servers available, an icon / logo of some sort, and an FAQ.

A simple github pages site would be a good solution for this.

Potential future intern side project?

Activity

  1. javiervargas commented on Oct 7, 2020

    @javiervargas
    Contributor

    I've created two things. On the one hand, a javascript script that uses ajax to read the spotbit now api every 15 seconds and update the graph. On the other, a very simple proxy script in PHP that masks access to port 5000 and returns the json output. Due spotbit runs on http and port 5000 when I try to access API I get an error by CORS policy.

    Error: (Access to fetch at from origin 'http://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.)

    I've tried using no-cors option on ajax api call or adding this rule (Header add Access-Control-Allow-Origin ) on .htaccess file without success. Meanwhile I've opted by create the simple proxy script that mask the port and returns the json output.

    If later spotbit can be accessed by WebSocket we just have to modify a few javascript lines and draw the charts.
    Other option could be run spotbit on https and the call to the api will work even it is listening on 5000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions