Skip to content

Setup React

Abhinav Gupta requested to merge abhinav/react-setup into main

DO NOT SPAM THE BUTTON ON THE PAGE AS IT CALLS THE GPT APIS, WHICH COSTS US MONEY.

I setup react and added a simple interface in the frontend to get Lucas started.

Do the following to get it running:

  1. install nvm if u dont have it already.

  2. open 2 terminals and cd them both into the analyzer folder.

  3. execute nvm use in both terminals.

  4. In one of the terminals, execute npm i to install frontend packages. Once that's done, execute npm start in the same terminal. Frontend has started running.

  5. In your other terminal, further cd into the server folder. Then, execute python3 app.py. Backend is also running now.

  6. Open localhost:3000 in the browser.

Once the above is done, try out the interface I have setup, which is the image below:

Screenshot_2024-03-31_at_12.40.25_AM

Click on the button to get the following:

Screenshot_2024-03-31_at_12.40.09_AM

Each box represents a different API getting called. Look into App.js for how im calling them and what input Im giving them. The three APIs return HTML.

Instead, you must make them return JSON and only return the response coming from GPT-3.5. Remove templates from the response.

Edited by Abhinav Gupta

Merge request reports