Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.34 KB

README.md

File metadata and controls

62 lines (43 loc) · 1.34 KB

Prerequisites

Option 1: Install node and Python

Option 2: Install Docker

Setup

The goal is to deploy 2 services: a backend service and a frontend service.

  • The backend service is a FastAPI service that will interact with OpenAI API.
  • The frontend service is a SvelteKit application.

Set OpenAI key

If you are running the services manually, you will need to set your OpenAI key in the backend service environment.

Create a file call .env in the root directory and put only your OpenAI key in it.

OPENAI_API_KEY=...

The docker-compose.yml will include this file's variables in the backend container environment.

Run manually

Option 1: Start backend

Note: find your configure token in the Outerbounds UI.

cd pdf-app/backend
pip install -r requirements.txt
outerbounds configure <>
uvicorn main:app --host 0.0.0.0 --port 8000

Option 1: Run frontend

cd pdf-app/frontend
npm i
npm run dev

Option 2: Pull pre-built containers

docker pull docker.io/eddieob/pdf-app-frontend:latest
docker pull docker.io/eddieob/pdf-app-backend:latest

Option 2: Build with docker compose

With container built:

docker compose up --build

After you have the containers built once, remove --build to start the containers faster:

docker compose up