From 16d7dd426a2f1dab2f1dd18bad837c8e0d23a3fd Mon Sep 17 00:00:00 2001
From: Marcus Schiesser <mail@marcusschiesser.de>
Date: Fri, 10 Nov 2023 18:15:14 +0700
Subject: [PATCH] fix: align express port with fastapi port

---
 .../templates/types/simple/express/README-template.md           | 2 +-
 packages/create-llama/templates/types/simple/express/index.ts   | 2 +-
 .../templates/types/streaming/express/README-template.md        | 2 +-
 .../create-llama/templates/types/streaming/express/index.ts     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/create-llama/templates/types/simple/express/README-template.md b/packages/create-llama/templates/types/simple/express/README-template.md
index 2da2865d5..98ebc4e49 100644
--- a/packages/create-llama/templates/types/simple/express/README-template.md
+++ b/packages/create-llama/templates/types/simple/express/README-template.md
@@ -17,7 +17,7 @@ npm run dev
 Then call the express API endpoint `/api/chat` to see the result:
 
 ```
-curl --location 'localhost:3000/api/chat' \
+curl --location 'localhost:8000/api/chat' \
 --header 'Content-Type: application/json' \
 --data '{ "messages": [{ "role": "user", "content": "Hello" }] }'
 ```
diff --git a/packages/create-llama/templates/types/simple/express/index.ts b/packages/create-llama/templates/types/simple/express/index.ts
index 90ce98b6d..a1bef65d6 100644
--- a/packages/create-llama/templates/types/simple/express/index.ts
+++ b/packages/create-llama/templates/types/simple/express/index.ts
@@ -3,7 +3,7 @@ import express, { Express, Request, Response } from "express";
 import chatRouter from "./src/routes/chat.route";
 
 const app: Express = express();
-const port = 3000;
+const port = 8000;
 
 app.use(express.json());
 
diff --git a/packages/create-llama/templates/types/streaming/express/README-template.md b/packages/create-llama/templates/types/streaming/express/README-template.md
index 2da2865d5..98ebc4e49 100644
--- a/packages/create-llama/templates/types/streaming/express/README-template.md
+++ b/packages/create-llama/templates/types/streaming/express/README-template.md
@@ -17,7 +17,7 @@ npm run dev
 Then call the express API endpoint `/api/chat` to see the result:
 
 ```
-curl --location 'localhost:3000/api/chat' \
+curl --location 'localhost:8000/api/chat' \
 --header 'Content-Type: application/json' \
 --data '{ "messages": [{ "role": "user", "content": "Hello" }] }'
 ```
diff --git a/packages/create-llama/templates/types/streaming/express/index.ts b/packages/create-llama/templates/types/streaming/express/index.ts
index 90ce98b6d..a1bef65d6 100644
--- a/packages/create-llama/templates/types/streaming/express/index.ts
+++ b/packages/create-llama/templates/types/streaming/express/index.ts
@@ -3,7 +3,7 @@ import express, { Express, Request, Response } from "express";
 import chatRouter from "./src/routes/chat.route";
 
 const app: Express = express();
-const port = 3000;
+const port = 8000;
 
 app.use(express.json());
 
-- 
GitLab