google-gemini / example-chat-app

Get up and running with the Gemini API using Node.js and Python
https://ai.google.dev/gemini-api/docs
Apache License 2.0
20 stars 11 forks source link

Issues with installation #21

Open jb-dev1 opened 1 week ago

jb-dev1 commented 1 week ago

Description of the bug:

The instructions seem out of order and are missing some dependencies. It first tells you to run the client before setting up and running the server. That's confusing.

Regardless, I attempted to install and run the js version. I ran npm install which was successful. Then, I ran node --env-file=.env app.js and successfully started the server. However, when I go to run the client with npm run start I get:

% npm run start

> chat-app@0.1.0 start
> vite --port 3000

sh: vite: command not found

Actual vs expected behavior:

No response

Any other information you'd like to share?

This is on a Macbook Air M3 Sequoia 15.0.1 running VSCode with Node installed via brew and everything up to date.

nidhinpd-YML commented 1 week ago

@jb-dev1 I've raised a PR to update the README to solve this issue. Please check the updated part below and run again

Run the React client

  1. Navigate to the app directory, client-react/.
  2. Run npm install. Wait for the installation to complete.
  3. Run the application with the following command:

    npm run start

The client will start on localhost:3000.