A simple TypeScript Node.js project with a single Express endpoint.
- Install dependencies:
npm install
- Start development server:
npm run dev
- Build for production:
npm run build
- Run production server:
npm start
- Make sure you have the required dependencies installed.
- Update the .envfile with your ElevenLabs API key.
- Open the Debug panel in VS Code (Ctrl+Shift+D or Cmd+Shift+D).
- Select "Debug Server" from the dropdown menu.
- Press the green play button or F5 to start debugging.
Run the debug script:
npm run debug
Then connect your debugger to the Node.js inspector at the default port 9229.
- GET /api/hello- Returns a hello message in JSON format
- Any ElevenLabs API endpoint can be accessed via /v1/...and will be proxied to the ElevenLabs API
- PORT- The port on which the server runs (default: 3000)
- ELEVENLABS_API_KEY- Your ElevenLabs API key