Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore: update local service ports to match docker compose (#1148)

Will Hutchinson6cb6ce4d8027
diff --git a/js/app/justfile b/js/app/justfile
index f78bb80ad5..b249bb33e9 100644
--- a/js/app/justfile
+++ b/js/app/justfile
@@ -1,6 +1,11 @@
dev-tauri:
cd packages/app && bun run --bun dev:tauri
+# Run the app with all services locally
+# This assumes you have followed the RUNNING_LOCALLLY.md instructions
+local:
+ cd packages/app && VITE_LOCAL_SERVERS='ALL' bun run --bun dev
+
local-dcs:
cd packages/app && VITE_LOCAL_SERVERS='cognition-service,cognition-websocket-service' bun run --bun dev
diff --git a/js/app/packages/core/constant/servers.ts b/js/app/packages/core/constant/servers.ts
index 76915a2ee1..75615a2405 100644
--- a/js/app/packages/core/constant/servers.ts
+++ b/js/app/packages/core/constant/servers.ts
@@ -1,21 +1,21 @@
const serverHostLocal: Servers = {
- 'auth-service': 'http://localhost:8084',
+ 'auth-service': 'http://localhost:8080',
'pdf-service': 'http://localhost:4567',
- 'document-storage-service': 'http://localhost:8083',
- 'organization-service': 'todo',
+ 'document-storage-service': 'http://localhost:8086',
+ 'organization-service': 'http://localhost:8090',
// TODO: make these work locally or shim
'websocket-service': 'wss://services-dev.macro.com',
- 'cognition-service': `http://localhost:8088`,
- 'cognition-websocket-service': `ws://localhost:8088`,
- 'connection-gateway': `ws://localhost:8080`,
- 'comms-service': `wss://comms-service.macro.com`,
- 'notification-service': `https://notifications.macro.com`,
- 'static-file': `https://static-file-service.macro.com`,
- 'unfurl-service': 'http://localhost:8080',
- contacts: 'http://localhost:8092',
- 'email-service': 'http://localhost:8094',
- 'search-service': 'http://localhost:8091',
- 'properties-service': `http://localhost:8095`,
+ 'cognition-service': 'http://localhost:8085',
+ 'cognition-websocket-service': 'ws://localhost:8085',
+ 'connection-gateway': 'ws://localhost:8082',
+ 'comms-service': 'ws://localhost:8081',
+ 'notification-service': 'http://localhost:8089',
+ 'static-file': 'http://localhost:8094',
+ 'unfurl-service': 'http://localhost:8095',
+ contacts: 'http://localhost:8083',
+ 'email-service': 'http://localhost:8087',
+ 'search-service': 'http://localhost:8093',
+ 'properties-service': 'http://localhost:8091',
} as const;
const devServerSuffix = import.meta.env.MODE === 'development' ? '-dev' : '';
@@ -52,6 +52,11 @@ function selectLocalServers(): Servers {
return serverHostRemote;
}
+ // Keyword to make running everything locally easier
+ if (selectedLocalServers === 'ALL') {
+ return serverHostLocal;
+ }
+
const servers = selectedLocalServers
.split(',')
.filter((name) => name in serverHostRemote)
diff --git a/js/app/scripts/services.ts b/js/app/scripts/services.ts
index 4353bd7c5b..3a143ff599 100644
--- a/js/app/scripts/services.ts
+++ b/js/app/scripts/services.ts
@@ -12,7 +12,7 @@ export const services: Service[] = [
name: "cloud-storage",
dev: "https://cloud-storage-dev.macro.com/api-doc/openapi.json",
prod: "https://cloud-storage.macro.com/api-doc/openapi.json",
- local: "http://localhost:8083/api-doc/openapi.json",
+ local: "http://localhost:8086/api-doc/openapi.json",
output: "../packages/service-clients/service-storage/",
orvalKey: "storageService",
},
@@ -20,7 +20,7 @@ export const services: Service[] = [
name: "document-cognition",
dev: "https://document-cognition-dev.macro.com/api-doc/openapi.json",
prod: "https://document-cognition-dev.macro.com/api-doc/openapi.json",
- local: "http://localhost:8088/api-doc/openapi.json",
+ local: "http://localhost:8085/api-doc/openapi.json",
output: "../packages/service-clients/service-cognition/",
orvalKey: "cognitionService",
},
@@ -28,7 +28,7 @@ export const services: Service[] = [
name: "auth-service",
dev: "https://auth-service-dev.macro.com/api-doc/openapi.json",
prod: "https://auth-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8084/api-doc/openapi.json",
+ local: "http://localhost:8080/api-doc/openapi.json",
output: "../packages/service-clients/service-auth/",
orvalKey: "authService",
},
@@ -36,7 +36,7 @@ export const services: Service[] = [
name: "comms-service",
dev: "https://comms-service-dev.macro.com/api-doc/openapi.json",
prod: "https://comms-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8086/api-doc/openapi.json",
+ local: "http://localhost:8081/api-doc/openapi.json",
output: "../packages/service-clients/service-comms/",
orvalKey: "commsService",
},
@@ -44,7 +44,7 @@ export const services: Service[] = [
name: "notification-service",
dev: "https://notifications-dev.macro.com/api-doc/openapi.json",
prod: "https://notifications.macro.com/api-doc/openapi.json",
- local: "http://localhost:8086/api-doc/openapi.json",
+ local: "http://localhost:8089/api-doc/openapi.json",
output: "../packages/service-clients/service-notification/",
orvalKey: "notificationService",
},
@@ -52,7 +52,7 @@ export const services: Service[] = [
name: "static-files",
dev: "https://static-file-service-dev.macro.com/api/api-doc/openapi.json",
prod: "https://static-file-service.macro.com/api/api-doc/openapi.json",
- local: "http://localhost:8089/api/api-doc/openapi.json",
+ local: "http://localhost:8094/api/api-doc/openapi.json",
output: "../packages/service-clients/service-static-files/",
orvalKey: "staticFileService",
},
@@ -60,7 +60,7 @@ export const services: Service[] = [
name: "connection-gateway",
dev: "https://connection-gateway-dev.macro.com/api-doc/openapi.json",
prod: "https://connection-gateway-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8085/api-doc/openapi.json",
+ local: "http://localhost:8082/api-doc/openapi.json",
output: "../packages/service-clients/service-connection/",
orvalKey: "connectionGateway",
},
@@ -68,7 +68,7 @@ export const services: Service[] = [
name: "contacts-service",
dev: "https://contacts-dev.macro.com/api-doc/openapi.json",
prod: "https://contacts.macro.com/api-doc/openapi.json",
- local: "http://localhost:8092/api-doc/openapi.json",
+ local: "http://localhost:8083/api-doc/openapi.json",
output: "../packages/service-clients/service-contacts/",
orvalKey: "contactService",
},
@@ -76,7 +76,7 @@ export const services: Service[] = [
name: "unfurl-service",
dev: "https://unfurl-service-dev.macro.com/api-doc/openapi.json",
prod: "https://unfurl-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8080/api-doc/openapi.json",
+ local: "http://localhost:8095/api-doc/openapi.json",
output: "../packages/service-clients/service-unfurl/",
orvalKey: "unfurlService",
},
@@ -84,7 +84,7 @@ export const services: Service[] = [
name: "email-service",
dev: "https://email-service-dev.macro.com/api-doc/openapi.json",
prod: "https://email-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8094/api-doc/openapi.json",
+ local: "http://localhost:8087/api-doc/openapi.json",
output: "../packages/service-clients/service-email/",
orvalKey: "emailService",
},
@@ -92,7 +92,7 @@ export const services: Service[] = [
name: "search-service",
dev: "https://search-service-dev.macro.com/api-doc/openapi.json",
prod: "https://search-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8091/api-doc/openapi.json",
+ local: "http://localhost:8093/api-doc/openapi.json",
output: "../packages/service-clients/service-search/",
orvalKey: "searchService",
},
@@ -100,7 +100,7 @@ export const services: Service[] = [
name: "properties-service",
dev: "https://properties-service-dev.macro.com/api-doc/openapi.json",
prod: "https://properties-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8095/api-doc/openapi.json",
+ local: "http://localhost:8091/api-doc/openapi.json",
output: "../packages/service-clients/service-properties/",
orvalKey: "propertiesService",
},
@@ -108,7 +108,7 @@ export const services: Service[] = [
name: "organization-service",
dev: "https://organization-service-dev.macro.com/api-doc/openapi.json",
prod: "https://organization-service.macro.com/api-doc/openapi.json",
- local: "http://localhost:8096/api-doc/openapi.json",
+ local: "http://localhost:8090/api-doc/openapi.json",
output: "../packages/service-clients/service-organization/",
orvalKey: "organization",
}
@@ -118,7 +118,7 @@ export const documentCognitionBase: Service = {
name: "document-cognition",
dev: "https://document-cognition-dev.macro.com",
prod: "https://document-cognition.macro.com",
- local: "http://localhost:8088",
+ local: "http://localhost:8085",
output: "../packages/service-clients/service-cognition/",
orvalKey: "cognitionService",
};