You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,21 @@
1
1
# LLM React App Javascript Template
2
2
3
+
## What is a LLM React App Javascript Template?
4
+
3
5
This a template project for a simple chat app connected to a Large Language Model (LLM). This is built on top of [the React template app from nano-react-app](https://github.com/nano-react-app/template-js). To connect the React app to an LLM, a Node server has been added to the project.
4
6
7
+
These are the available commands:
8
+
5
9
-`npm start-server` — This will start a development node backend server with a default port of `3100`.
6
10
-`npm start` — This will start a development server for the react frontend app with a default port of `5173`.
7
11
-`npm run build` — This will output a production build in the `dist` directory.
8
12
-`npm run preview` — This will run the production build locally with a default port of `5173` (this will not work if you haven't generated the production build yet).
9
13
14
+
## Getting Started
15
+
16
+
To get started, create a `.env` file by copying the `SAMPLE_env` file. Then, add your Open API key to the file.
17
+
Now you are ready to run the server and the web app.
18
+
10
19
## Custom port
11
20
12
21
You can use the `-p` flag to specify a port for development. To do this, you can either run `npm start` with an additional flag:
0 commit comments