Git Product home page Git Product logo

fard's Introduction

Fardserver

Installing and running

The code is generally a mess of hacky spaghetti, but the server can be run by cloning the repo, navigating to the folder and running

go build
./fard

During initial startup the ipv4 address is shown in the log. If you hosting on the same machine, navigate to localhost:10000 to begin. The core functionality of sound playback and uploading should work, but most of the special functions require additional ressources that cannot be distributed through github.

Endpoint description

The fardserver exposes several endpoints that can be used for scripting purposes. They can be reached using curl or equivalent.

EXAMPLE: curl fardserver.lan:10000/ding

/refreshmemes

Returns a JSON struct of all memes currently loaded into the fardserver. Each meme has their own unique ID, which is the integer that can be used in

/fard/{int}

This will make the server play the sound with the ID from /refreshmemes

/getloops

Works the same as /refreshmemesbut with returns a JSON struct with all the loops currently loaded

/loop/{int}

Same logic as the /fardendpoint. Using the ID provided by /getloops tell the server to start playing a loop.

/stoploop

Tells the server to stop playing sounds. This is very useful when bloood starts flowing from your eardrums.

/ding

Makes the server play a "ding" sound. It is very convenient to bind a keyboard key to this function.

fard's People

Contributors

pechano avatar

Watchers

 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.