- Postgresql installed and configured.
- Node.js v16 or higher is installed.
- You have your openai api key.
- Open terminal\n
cd
to backend\app directory\n- Execute
uvicorn main:app --reload
in the terminal\n - Open your browser and go to
http://127.0.0.1:8000
\n
First, run fastapi by executing uvicorn main:app --reload
in your terminal.
There are two functions implemented at the moment:\n 1. Get all data\n 2. Create data\n
Go to Postman and make a get request to the following url:\n
http://127.0.0.1:8000\sample
Go to Postman and make a get request to the following url:\n
http://127.0.0.1:8000\sample\create
Sample Body:\n
{
"parameter": {
"title": "Sample data",
"description": "Sample description"
}
}
- Keep the backend running.
- Open a new terminal and cd to frontend\my-app.
- Run
npm start
in the terminal. - Go to the url
http:\\localhost:3000
in your browser. - Write your question in the first input area and click on Generate button.
- Run
gcloud auth application-default login
in your terminal. - Start the backend if not running.
- Keep the backend running.
- Open a new terminal and cd to frontend\my-app.
- Run
npm start
in the terminal. - Go to the url
http:\\localhost:3000
in your browser. - Write your question in the first input area and click on Generate button.