Coder Social home page Coder Social logo

ushie / revanced-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from revanced/revanced-api

0.0 0.0 0.0 1.23 MB

๐Ÿš€ ReVanced's JSON API

Home Page: https://api.revanced.app

License: GNU Affero General Public License v3.0

Dockerfile 0.47% Kotlin 99.53%

revanced-api's Introduction


ย ย ย  ย ย ย  ย ย ย  ย ย ย  ย ย ย  ย ย ย 

Continuing the legacy of Vanced

๐Ÿš€ ReVanced API

GitHub Workflow Status (with event) AGPLv3 License

API server for ReVanced.

โ“ About

ReVanced API is a server that is used as the backend for ReVanced. ReVanced API acts as the data source for ReVanced Website and powers ReVanced Manager with updates and ReVanced Patches.

๐Ÿ’ช Features

Some of the features ReVanced API include:

  • ๐Ÿ“ข Announcements: Post and get announcements grouped by channels
  • โ„น๏ธ About: Get more information such as a description, ways to donate to, and links of the hoster of ReVanced API
  • ๐Ÿงฉ Patches: Get the latest updates of ReVanced Patches, directly from ReVanced API
  • ๐Ÿ‘ฅ Contributors: List all contributors involved in the project
  • ๐Ÿ”„ Backwards compatibility: Proxy an old API for migration purposes and backwards compatibility

๐Ÿš€ How to get started

ReVanced API can be deployed as a Docker container or used standalone.

๐Ÿณ Docker

To deploy ReVanced API as a Docker container, you can use Docker Compose or Docker CLI.
The Docker image is published on GitHub Container registry, so before you can pull the image, you need to authenticate to the Container registry.

๐Ÿ—„๏ธ Docker Compose

  1. Create an .env file using .env.example as a template
  2. Create a configuration.toml file using configuration.example.toml as a template
  3. Create a docker-compose.yml file using docker-compose.example.yml as a template
  4. Run docker-compose up -d to start the server

๐Ÿ’ป Docker CLI

  1. Create an .env file using .env.example as a template
  2. Create a configuration.toml file using configuration.example.toml as a template
  3. Start the container using the following command:
    docker run -d --name revanced-api \
     # Mount the .env file
     -v $(pwd)/.env:/app/.env \
     # Mount the configuration.toml file
     -v $(pwd)/configuration.toml:/app/configuration.toml \
     # Mount the persistence folder
     -v $(pwd)/persistence:/app/persistence \
     # Expose the port 8888
     -p 8888:8888 \
     # Use the start command to start the server
     -e COMMAND=start \
     # Pull the image from the GitHub Container registry
     ghcr.io/revanced/revanced-api:latest

๐Ÿ–ฅ๏ธ Standalone

To deploy ReVanced API standalone, you can either use the pre-built executable or build it from source.

๐Ÿ“ฆ Pre-built executable

A Java Runtime Environment (JRE) must be installed.

  1. Download ReVanced API to a folder
  2. In the same folder, create an .env file using .env.example as a template
  3. In the same folder, create a configuration.toml file using configuration.example.toml as a template
  4. Run java -jar revanced-api.jar start to start the server

๐Ÿ› ๏ธ From source

A Java Development Kit (JDK) and Git must be installed.

  1. Run git clone [email protected]:ReVanced/revanced-api.git to clone the repository
  2. Copy .env.example to .env and fill in the required values
  3. Copy configuration.example.toml to configuration.toml and fill in the required values
  4. Run gradlew run --args=start to start the server

๐Ÿ“š Everything else

๐Ÿ“™ Contributing

Thank you for considering contributing to ReVanced API. You can find the contribution guidelines here.

๐Ÿ› ๏ธ Building

To build ReVanced API, a Java Development Kit (JDK) and Git must be installed.
Follow the steps below to build ReVanced API:

  1. Run git clone [email protected]:ReVanced/revanced-api.git to clone the repository
  2. Run gradlew build to build the project

๐Ÿ“œ Licence

ReVanced API is licensed under the AGPLv3 licence. Please see the licence file for more information. tl;dr you may copy, distribute and modify ReVanced API as long as you track changes/dates in source files. Any modifications to ReVanced API must also be made available under the GPL along with build & install instructions.

revanced-api's People

Contributors

alexandreteles avatar benjaminhalko avatar dependabot[bot] avatar lisouseinaikyrios avatar osumatrix avatar pre-commit-ci[bot] avatar semantic-release-bot avatar ushie avatar validcube avatar vitalyart 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.