Coder Social home page Coder Social logo

lbrytv's Introduction

API Server for LBRY on the Web

This project is the API server used by lbry.tv. If you are looking for the UI code, that lives here: https://github.com/lbryio/lbry-desktop.

Active development is in progress, expect failing tests and breaking changes.

CircleCI Coverage

Running with Docker

This is the recommended method for frontend development.

Make sure you have recent enough Docker and docker-compose installed.

1. Initialize and launch the containers

This will pull and launch SDK and postgres images, which lbrytv requires to operate.

docker-compose up app

Note: if you're running a LBRY desktop app or lbrynet instance, you will have to either shut it down or change ports

2. Setup up the database schema if this is your first launch

docker-compose run app ./lbrytv db_migrate_up

3. Clone lbry-desktop repo, if you don't have it

cd ..
git clone [email protected]:lbryio/lbry-desktop.git

4. Launch UI in lbry-desktop repo folder

SDK_API_URL=http://localhost:8080/api/v1/proxy yarn dev:web

5. Open http://localhost:8081/ in Chrome

Running off the source (if you want to modify things)

You still might want to use docker and docker-compose for running SDK and DB containers.

1. Launch the containers

docker-compose up -d postgres lbrynet

Note: if you're running a LBRY desktop app or lbrynet instance, you will have to either shut it down or change ports

2. Setup up the database schema if this is your first launch

go run . db_migrate_up

3. Start lbrytv API server

go run .

4. Clone lbry-desktop repo, if you don't have it

cd ..
git clone [email protected]:lbryio/lbry-desktop.git

5. Launch UI in lbry-desktop repo folder

SDK_API_URL=http://localhost:8080 yarn dev:web

6. Open http://localhost:8081/ in Chrome

Testing

Make sure you have lbrynet and postgres containers running and run make test.

Modifying and building a Docker image

First, make sure you have Go 1.11+

Then build the binary, create a docker image locally and run off it:

make image && docker-compose up app

Contributing

Contributions to this project are welcome, encouraged, and compensated. For more details, see lbry.io/faq/contributing.

Please ensure that your code builds and automated tests run successfully before pushing your branch. You must go fmt your code before you commit it, or the build will fail.

License

This project is MIT licensed. For the full license, see LICENSE.

Security

We take security seriously. Please contact [email protected] regarding any issues you may encounter. Our PGP key is here if you need it.

Contact

The primary contact for this project is @sayplastic ([email protected]).

lbrytv's People

Contributors

anbsky avatar binaryflesh avatar g1tman avatar jackrobison avatar lyoshenka avatar nikooo777 avatar tiger5226 avatar tzarebczan 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.