Files
payments-rest-api/docs/DEV.md

735 B

Local Development

  1. Clone the repository:

    git clone https://github.com/breez/payments-rest-api.git
    cd payments-rest-api/fly
    
  2. Install dependencies with Poetry:

    poetry install
    
  3. Create a .env file with your configuration:

    cp .env.example .env
    # Edit .env file with your actual credentials
    
  4. Run the application:

    poetry run uvicorn main:app --reload
    
  5. Visit http://localhost:8000/docs in your browser to see the API documentation

Docker

  1. Build the Docker image:

    docker build -t payments-rest-api .
    
  2. Run the container:

    docker run -p 8000:8000 --env-file .env payments-rest-api