Giter Site home page Giter Site logo

わかるらんどAPI about wakaruland HOT 2 OPEN

napo0703 avatar napo0703 commented on August 18, 2024
わかるらんどAPI

from wakaruland.

Comments (2)

napo0703 avatar napo0703 commented on August 18, 2024

投稿だけならこれしかやってないです。
こういうのをライブラリとかAPI化とかするにはどうするのがいいんでしょうか?

const server_url = "YOUR_LINDA_SERVER";
const socket = SocketIO(server_url);
const linda = new Linda().connect(socket);
const ts = linda.tuplespace("YOUR_TUPLE_SPACE");

linda.io.on("connect", () => {
  console.log("connect Linda!!");
}

var sendReaction = (reactor, img_url, display_time) => {
  ts.write({from: reactor, value: img_url, time: display_time});
};

from wakaruland.

shokai avatar shokai commented on August 18, 2024

tuple仕様だけREADMEに書いておけばいいのでは
あとは、CLIから node wakaruland-post.js http:~~~ のようにして引数に渡した画像URLをpostするサンプルコードをリポジトリに入れておく、ぐらいで十分だと思います

from wakaruland.

Related Issues (20)

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.