Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 806 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 806 Bytes

Open Bus Backend

Configuration

The following environment variables are required:

  • GITHUB_TOKEN
  • GITHUB_OWNER
  • GITHUB_REPO

Local Development

npm install
node index.js

curl -X POST http://localhost:3001/create-issue -H "Content-Type: application/json" -d '{
  "title": "Sample Title",
  "contactName": "John Doe",
  "contactEmail": "[email protected]",
  "description": "Detailed description of the issue.",
  "environment": "Operating system, software version, hardware specifics.",
  "expectedBehavior": "What you expect to happen.",
  "actualBehavior": "What actually happens.",
  "reproducibility": "Steps to reproduce the issue."
}'

Running with Docker

docker build -t backend .
docker run -it -p 3001:3001 -e GITHUB_TOKEN -e GITHUB_OWNER -e GITHUB_REPO backend