add: platform deploy docs

pull/1/head
Artem-Darius Weber 1 year ago
parent 5e7d7766c1
commit 075bc6d862

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="6cb4dca5-d93c-4b61-8425-4ba8b7c9b2ff" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/weather_platform/.env" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/.env" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/agregators-service/src/main.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/agregators-service/src/main.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/agw/src/main.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/agw/src/main.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/crud/proxy.conf.json" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/crud/proxy.conf.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/measures-service/src/app/app.controller.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/measures-service/src/app/app.controller.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/measures-service/src/main.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/measures-service/src/main.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/sensors-service/src/main.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/sensors-service/src/main.ts" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectId" id="2WQSJMtSztUrKlia6nQzkrUUqV2" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"ts.external.directory.path": "/Users/darius/Desktop/ASC/CyberGarden/kempt-kinkajou/weather_platform/node_modules/typescript/lib",
"vue.rearranger.settings.migration": "true"
}
}]]></component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="6cb4dca5-d93c-4b61-8425-4ba8b7c9b2ff" name="Changes" comment="" />
<created>1696663237589</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1696663237589</updated>
<workItem from="1696663238626" duration="1098000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
</project>

@ -2,6 +2,7 @@ AGW_PORT=8045
SENSORS_SERVICE_PORT=8046
AGREGATORS_SERVICE_PORT=8047
MEASURES_SERVICE_PORT=8048
PORT=8080
AGREGATORS_SOURCE_URL=postgresql://user2235:atlantium@localhost:5441/agregators
SENSORS_SOURCE_URL=postgresql://user2235:atlantium@localhost:5440/sensors
MEASURES_SOURCE_URL=postgresql://user2235:atlantium@localhost:5442/measures

@ -66,51 +66,12 @@ copy .env.example .env
```
```bash
cd apps/matrix-events-registry/docker && docker-compose up -d
```
```bash
cd apps/matrix-registry/docker && docker-compose up -d
```
```bash
cd apps/labs/docker && docker-compose up -d
```
```bash
cd apps/labs/docker && docker-compose up -d
```
[Matrix Registry Service](/apps/matrix-registry)
```bash
prisma db push --schema="./libs/prisma-clients/matrix-device-registry/prisma/schema.prisma"
```
```bash
prisma generate --schema="./libs/prisma-clients/matrix-device-registry/prisma/schema.prisma"
```
[Matrix Events Registry Service](/apps/matrix-events-registry)
```bash
prisma db push --schema="./libs/prisma-clients/matrix-events/prisma/schema.prisma"
```
```bash
prisma generate --schema="./libs/prisma-clients/matrix-events/prisma/schema.prisma"
```
```bash
prisma db push --schema="./libs/prisma-clients/labs/prisma/schema.prisma"
```
```bash
prisma generate --schema="./libs/prisma-clients/labs/prisma/schema.prisma"
```
```bash
nx run py-multy-agent-interpreter:serve
```
docker-compose up -d
```
Run all services:
```bash
nx run-many --parallel --target=serve --projects=frontend,agw,matrix-registry,matrix-events-registry,labs
nx run-many --parallel --target=serve --projects=crud,agw,agregators-service,measures-service,sensors-service
```

@ -27,7 +27,7 @@ async function bootstrap() {
app.enableCors();
await app.listen(port);
Logger.log(
`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`
`🚀 Agregators Service is running on: http://localhost:${port}/${globalPrefix}`
);
}

@ -27,7 +27,7 @@ async function bootstrap() {
app.enableCors();
await app.listen(port);
Logger.log(
`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`
`🚀 AGW is running on: http://localhost:${port}/${globalPrefix}`
);
}

@ -1,6 +1,6 @@
{
"/api": {
"target": "http://localhost:3000",
"target": "http://localhost:8045",
"secure": false
}
}

@ -102,7 +102,7 @@ export class AppController {
})
@Post('create')
async createMeasure(
@Body() sectionData: MeasureCreateDTO,
@Body() sectionData: MeasureCreateDTOClass,
): Promise<Measures> {
const { uuid } = uuidv4();

@ -27,7 +27,7 @@ async function bootstrap() {
app.enableCors();
await app.listen(port);
Logger.log(
`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`
`🚀 Measures Service is running on: http://localhost:${port}/${globalPrefix}`
);
}

@ -27,7 +27,7 @@ async function bootstrap() {
app.enableCors();
await app.listen(port);
Logger.log(
`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`
`🚀 Sensors Service is running on: http://localhost:${port}/${globalPrefix}`
);
}

Loading…
Cancel
Save