Skip to content
Whishper

Develop Whishper

Requirements

You will need the following tools installed in your machine to develop Whishper:

  • Golang 1.20+
  • NodeJS
  • Docker

Initial setup

Clone the repository: git clone https://github.com/pluja/whishper

Bring up the containers needed for development:

docker-compose up -f docker-compose.yml -f docker-compose.dev.yml -d mongo transcription-api translate

Running the backend

Run the backend:

# Change to the backend directory
cd backend
# Run the backend
go run . -dev -updir ../whishper_data/uploads -asr localhost:8000 -translation localhost:5000 -db localhost:27017

Running the frontend

Add the following .env file inside the frontend folder:

PUBLIC_API_HOST=http://localhost:8080
PUBLIC_TRANSLATION_API_HOST=http://127.0.0.1:5000
PUBLIC_INTERNAL_API_HOST=http://127.0.0.1:8080

Then, run the frontend:

# Change to the frontend directory:
cd frontend
# Install dependencies:
npm install
# Run the development server:
npm run dev