add missing installation steps for the todo plugin

Signed-off-by: Gauthier Roebroeck <gauthier.roebroeck@gmail.com>
This commit is contained in:
Gauthier Roebroeck
2021-11-18 14:12:31 +08:00
parent eaeac8fdac
commit d266c30243
2 changed files with 84 additions and 0 deletions
+13
View File
@@ -36,6 +36,19 @@ export default async function createPlugin({
}
```
And then add to `packages/backend/src/index.ts`:
```js
// In packages/backend/src/index.ts
import todo from './plugins/todo';
// ...
async function main() {
// ...
const todoEnv = useHotMemoize(module, () => createEnv('todo'));
// ...
apiRouter.use('/todo', await kafka(todoEnv));
```
## Scanned Files
The included `TodoReaderService` and `TodoScmReader` works by reading source code of to the entity that is being viewed. The location source code is determined by the value of the [`backstage.io/source-location`