Giter VIP home page Giter VIP logo

backend-api's Introduction

Backend API

Overview

Backend-api is a dedicated solution for managing Hummingbot instances. It offers a robust backend API to streamline the deployment, management, and interaction with Hummingbot containers. This tool is essential for administrators and developers looking to efficiently handle various aspects of Hummingbot operations.

Features

  • Deployment File Management: Manage files necessary for deploying new Hummingbot instances.
  • Container Control: Effortlessly start and stop Hummingbot containers.
  • Archiving Options: Securely archive containers either locally or on Amazon S3 post-removal.
  • Direct Messaging: Communicate with Hummingbots through the broker for effective control and coordination.

Getting Started

Conda Installation

  1. Install the environment using Conda:
    conda env create -f environment.yml
  2. Activate the Conda environment:
    conda activate backend-api

Running the API with Conda

Run the API using uvicorn with the following command:

uvicorn main:app --reload

Docker Installation and Running the API

For running the project using Docker, follow these steps:

  1. Set up Environment Variables:

    • Execute the set_environment.sh script to configure the necessary environment variables in the .env file:
      ./set_environment.sh
  2. Build and Run with Docker Compose:

    • After setting up the environment variables, use Docker Compose to build and run the project:

      docker compose up --build
    • This command will build the Docker image and start the containers as defined in your docker-compose.yml file.

Usage

This API is designed for:

  • Deploying Hummingbot instances
  • Starting/Stopping Containers
  • Archiving Hummingbots
  • Messaging with Hummingbot instances

To test these endpoints, you can use the Swagger UI or Redoc.

Contributing

Contributions are welcome! For support or queries, please contact us on Discord.

backend-api's People

Contributors

cardosofede avatar david-hummingbot avatar fengtality 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.