Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ This template is an example project for a simple Large Language Model (LLM) appl

These are the available commands:

- `npm start` — This will start a React development server for the frontend app, with a default port of `5173`.
- `npm start-server` — This will start a Node development server for the backend app, with a default port of `3100`.
- `yarn start` — This will start a React development server for the frontend app, with a default port of `5173`.
- `yarn start-server` — This will start a Node development server for the backend app, with a default port of `3100`.

- `npm run build` — This will output a production build of the frontend app in the `dist` directory.
- `npm run preview` — This will run the production build of the frontend app locally with a default port of `5173` (_note_: this will not work if you haven't generated the production build yet).
- `yarn build` — This will output a production build of the frontend app in the `dist` directory.
- `yarn preview` — This will run the production build of the frontend app locally with a default port of `5173` (_note_: this will not work if you haven't generated the production build yet).

## Getting Started

Expand All @@ -24,7 +24,7 @@ Now you are ready to run the server and the web app.
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:

```bash
npm start -- --port 3000
yarn start -- --port 3000
```

Or edit the `start` script directly:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/Chat.jsx → client/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const Chat = () => {
const [userInput, setUserInput] = useState('');
const [loading, setLoading] = useState(false);
const [answer, setAnswer] = useState('');
const [error, setError] = useState(null);
const [error, setError] = useState('');

const handleInputChange = (event) => {
setError(null);
setError('');
setUserInput(event.target.value);
};

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/index.jsx"></script>
<script type="module" src="./client/index.jsx"></script>
</body>
</html>
3,555 changes: 0 additions & 3,555 deletions package-lock.json

This file was deleted.

2,276 changes: 2,276 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.