GithubHelp home page GithubHelp logo

flashcard-cli's Introduction

Flashcard CLI

The Flashcard CLI is a command-line tool for interacting with your flashcards.

Using the Flashcard CLI with Docker

Follow these steps to utilize the Flashcard CLI within a Docker environment:

  1. Create a Docker network for the Flashcard CLI: Assuming you're running the API locally using Docker Compose. If not, proceed to step 3 without utilizing the --network parameter and adjust FLASHCARD_BASE_URL to the base URL where the API is running.

    docker network create flashcard-cli
  2. Build the Flashcard CLI Docker image: This command builds the Docker image with the flashcard-cli binary.

    docker build -t fc .
  3. Run the Flashcard CLI: This command runs the container, passing the base URL of the API. If not provided, the default base URL will be http://localhost:5000/api/v1. The --network parameter is used to access the API and resolve the passed address correctly. Additionally, a volume is created to maintain user authentication between commands.

    docker run -e FLASHCARD_BASE_URL=http://flashcard-api:5000/api/v1 --network flashcard-cli -v /home/dev/.fc/:/root/.fc -it fc --help

    The -e FLASHCARD_BASE_URL=http://flashcard-api:5000/api/v1 option sets the API's base URL.

    The -it flag allows interaction within the container's terminal.

  4. Help and available commands:

    To get help and view the available commands, type:

    fc --help

    This will display detailed information on how to use the Flashcard CLI.


This README serves as a starting point to help you run the Flashcard CLI in Docker. Refer to fc --help for more details on available commands and their uses.

flashcard-cli's People

Contributors

cleiton080 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.