Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

ddev-codebase

This is a DDEV add-on for Codebase, a project managment software.

Add-on installation

ddev add-on get happiness/ddev-codebase

PhpStorm Integration

Configure a task server at Tools > Tasks > Servers, add a Generic server with the following config:

<component name="TaskManager">
  <servers>
    <Generic url="https://<PROJECT>.ddev.site:8081">
      <option name="loginAnonymously" value="true" />
      <option name="responseHandlers">
        <XPathResponseHandler />
        <JsonResponseHandler>
          <selectors>
            <selector name="tasks" path="$.tickets" />
            <selector name="id" path="id" />
            <selector name="summary" path="summary" />
            <selector name="description" path="" />
            <selector name="updated" path="updated" />
            <selector name="created" path="created" />
            <selector name="closed" />
            <selector name="issueUrl" path="issue_url" />
            <selector name="singleTask-id" path="$.ticket.id" />
            <selector name="singleTask-summary" path="$.ticket.summary" />
            <selector name="singleTask-description" path="" />
            <selector name="singleTask-updated" path="$.ticket.updated" />
            <selector name="singleTask-created" path="$.ticket.created" />
            <selector name="singleTask-closed" />
            <selector name="singleTask-issueUrl" path="$.ticket.issue_url" />
          </selectors>
        </JsonResponseHandler>
        <RegExResponseHandler />
      </option>
      <option name="singleTaskUrl" value="{serverUrl}/codebase.php?op=ticket&amp;id={id}" />
      <option name="tasksListUrl" value="{serverUrl}/codebase.php?op=tickets" />
    </Generic>
  </servers>
</component>

.env

Create a .ddev/.env file with the following contents or append it if the file aready exists.

CODEBASE_API_KEY=<API_KEY>
CODEBASE_API_URL="https://api3.codebasehq.com"
CODEBASE_PROJECT=<PROJECT-ID>
CODEBASE_USERNAME=<API_USERNAME>