Skip to content

Commit

Permalink
feat: show version at start
Browse files Browse the repository at this point in the history
  • Loading branch information
genaris committed Mar 19, 2024
1 parent 6d6318d commit 38eeb69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ docker run -e AGENT_PUBLIC_DID=... -e AGENT_ENDPOINT=... -e AGENT_PORT=yyy -e US
```

where yyy is an publicly accesible port from the host machine.

## API

For the moment, some details about Service Agent API can be found in this [Document](./doc/service-agent-api.md). There is some work in progress to make the API available within Swagger: when deployed, just go to [SERVICE_AGENT_ADMIN_BASE_URL]/api.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { VersioningType } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'

import packageJson from '../package.json'

import { ServiceAgentModule } from './app.module'
import { connectionEvents } from './events/ConnectionEvents'
import { messageEvents } from './events/MessageEvents'
Expand Down Expand Up @@ -74,7 +76,7 @@ const run = async () => {
messageEvents(agent, conf)

console.log(
`Service Agent running in port ${Number(process.env.AGENT_PORT || 3001)}. Admin interface at port ${conf.port}`,
`Service Agent v${packageJson['version']} running in port ${Number(process.env.AGENT_PORT || 3001)}. Admin interface at port ${conf.port}`,
)
}

Expand Down

0 comments on commit 38eeb69

Please sign in to comment.