From 1a704d61a4eb300906788cc1c21566398216281d Mon Sep 17 00:00:00 2001 From: Priyansh-max Date: Tue, 15 Apr 2025 14:16:33 +0530 Subject: [PATCH 1/5] supabase dependency added --- Frontend/package-lock.json | 24 ++++++++++++------------ Frontend/package.json | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Frontend/package-lock.json b/Frontend/package-lock.json index cc02f6e..c0f0563 100644 --- a/Frontend/package-lock.json +++ b/Frontend/package-lock.json @@ -16,7 +16,7 @@ "@radix-ui/react-separator": "^1.1.2", "@radix-ui/react-slider": "^1.2.3", "@radix-ui/react-tabs": "^1.1.3", - "@supabase/supabase-js": "^2.49.1", + "@supabase/supabase-js": "^2.49.4", "@tailwindcss/vite": "^4.0.9", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", @@ -2063,9 +2063,9 @@ ] }, "node_modules/@supabase/auth-js": { - "version": "2.68.0", - "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.68.0.tgz", - "integrity": "sha512-odG7nb7aOmZPUXk6SwL2JchSsn36Ppx11i2yWMIc/meUO2B2HK9YwZHPK06utD9Ql9ke7JKDbwGin/8prHKxxQ==", + "version": "2.69.1", + "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.69.1.tgz", + "integrity": "sha512-FILtt5WjCNzmReeRLq5wRs3iShwmnWgBvxHfqapC/VoljJl+W8hDAyFmf1NVw3zH+ZjZ05AKxiKxVeb0HNWRMQ==", "license": "MIT", "dependencies": { "@supabase/node-fetch": "^2.6.14" @@ -2093,9 +2093,9 @@ } }, "node_modules/@supabase/postgrest-js": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.19.2.tgz", - "integrity": "sha512-MXRbk4wpwhWl9IN6rIY1mR8uZCCG4MZAEji942ve6nMwIqnBgBnZhZlON6zTTs6fgveMnoCILpZv1+K91jN+ow==", + "version": "1.19.4", + "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.19.4.tgz", + "integrity": "sha512-O4soKqKtZIW3olqmbXXbKugUtByD2jPa8kL2m2c1oozAO11uCcGrRhkZL0kVxjBLrXHE0mdSkFsMj7jDSfyNpw==", "license": "MIT", "dependencies": { "@supabase/node-fetch": "^2.6.14" @@ -2123,15 +2123,15 @@ } }, "node_modules/@supabase/supabase-js": { - "version": "2.49.1", - "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.49.1.tgz", - "integrity": "sha512-lKaptKQB5/juEF5+jzmBeZlz69MdHZuxf+0f50NwhL+IE//m4ZnOeWlsKRjjsM0fVayZiQKqLvYdBn0RLkhGiQ==", + "version": "2.49.4", + "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.49.4.tgz", + "integrity": "sha512-jUF0uRUmS8BKt37t01qaZ88H9yV1mbGYnqLeuFWLcdV+x1P4fl0yP9DGtaEhFPZcwSom7u16GkLEH9QJZOqOkw==", "license": "MIT", "dependencies": { - "@supabase/auth-js": "2.68.0", + "@supabase/auth-js": "2.69.1", "@supabase/functions-js": "2.4.4", "@supabase/node-fetch": "2.6.15", - "@supabase/postgrest-js": "1.19.2", + "@supabase/postgrest-js": "1.19.4", "@supabase/realtime-js": "2.11.2", "@supabase/storage-js": "2.7.1" } diff --git a/Frontend/package.json b/Frontend/package.json index c22f509..be21504 100644 --- a/Frontend/package.json +++ b/Frontend/package.json @@ -18,7 +18,7 @@ "@radix-ui/react-separator": "^1.1.2", "@radix-ui/react-slider": "^1.2.3", "@radix-ui/react-tabs": "^1.1.3", - "@supabase/supabase-js": "^2.49.1", + "@supabase/supabase-js": "^2.49.4", "@tailwindcss/vite": "^4.0.9", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", From 037720f3b8677cd2d15122bee8be58082d795696 Mon Sep 17 00:00:00 2001 From: Priyansh-max Date: Tue, 15 Apr 2025 14:16:40 +0530 Subject: [PATCH 2/5] readme updated --- README.md | 57 ++++++++++++++++++++++++------------------------------- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 64f15c3..c91bc6e 100644 --- a/README.md +++ b/README.md @@ -86,50 +86,54 @@ Ensure you have the following installed: ```sh git clone https://github.com/AOSSIE-Org/InPact.git cd inpact - ``` -#### 2. Install Frontend Dependencies +#### 2. Frontend Setup +1. Navigate to the frontend directory: ```sh cd frontend -npm install ``` -#### 3. Install Backend Dependencies - +2. Install dependencies: ```sh -cd backend -pip install -r requirements.txt +npm install ``` -#### 4. Backend Setup +3. Create a `.env` file using `.env-example` file: -1. Navigate to the backend directory: +4. Get your Supabase credentials: + - Go to [Supabase](https://supabase.com/) + - Log in and create a new project (or use existing) + - Go to Project Settings -> API + - Copy the "Project URL" and paste it as VITE_SUPABASE_URL + - Copy the "anon public" key and paste it as VITE_SUPABASE_ANON_KEY + +#### 3. Backend Setup + +1. Navigate to the backend directory: ```sh -cd backend +cd ../backend ``` -2. Download the required dependencies: - +2. Install dependencies: ```sh pip install -r requirements.txt ``` 3. Navigate to the app directory: - ```sh cd app ``` 4. Create a `.env` file using `.env-example` as a reference. -5. Obtain Supabase credentials: +5. Obtain Supabase credentials: - Go to [Supabase](https://supabase.com/) - - Log in and create a new project. - - Click on the project and remember the project password. - - Go to the **Connect** section at the top. + - Log in and create a new project + - Click on the project and remember the project password + - Go to the **Connect** section at the top - Select **SQLAlchemy** and copy the connection string: ```sh @@ -152,29 +156,18 @@ cd app dbname=postgres ``` - - Paste this in the `.env` file. - 6. Get the Groq API key: - - Visit [Groq Console](https://console.groq.com/) - - Create an API key and paste it into the `.env` file. + - Create an API key and paste it into the `.env` file -7. Start the backend server: - -```sh -uvicorn main:app --reload -``` - -#### 5. Start Development Servers - -- **Frontend**: +#### 4. Start Development Servers +1. Start the frontend server (from the frontend directory): ```sh npm run dev ``` -- **Backend**: - +2. Start the backend server (from the backend/app directory): ```sh uvicorn main:app --reload ``` From 879a38b83ce022b2c96180b5269722084e496ebd Mon Sep 17 00:00:00 2001 From: Priyansh-max Date: Tue, 15 Apr 2025 14:16:56 +0530 Subject: [PATCH 3/5] gitignore added for frontend --- Frontend/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Frontend/.gitignore diff --git a/Frontend/.gitignore b/Frontend/.gitignore new file mode 100644 index 0000000..6ed48a9 --- /dev/null +++ b/Frontend/.gitignore @@ -0,0 +1,2 @@ +.env +node_modules From a7287c0f0804adaab614fb63cfbe68ddd3cdd9b3 Mon Sep 17 00:00:00 2001 From: Priyansh-max Date: Tue, 15 Apr 2025 14:17:07 +0530 Subject: [PATCH 4/5] env-example file added --- Frontend/env-example | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Frontend/env-example diff --git a/Frontend/env-example b/Frontend/env-example new file mode 100644 index 0000000..407c780 --- /dev/null +++ b/Frontend/env-example @@ -0,0 +1,2 @@ +VITE_SUPABASE_URL=https://your-project.supabase.co +VITE_SUPABASE_ANON_KEY=your-anon-key-here \ No newline at end of file From 0b399956ac1908b6e3c28858185df5db7edbb6cd Mon Sep 17 00:00:00 2001 From: Priyansh Agarwal <109947651+Priyansh-max@users.noreply.github.com> Date: Thu, 29 May 2025 10:46:06 +0530 Subject: [PATCH 5/5] updated README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 157b20f..b99da38 100644 --- a/README.md +++ b/README.md @@ -98,10 +98,9 @@ cd frontend 2. Install dependencies: ```sh npm install -======= ``` -3. Create a `.env` file using `.env-example` file: +3. Create a `.env` file using `.env.example` file: 4. Get your Supabase credentials: @@ -132,7 +131,7 @@ docker compose up -d ```sh cd app ``` -5. Create a `.env` file using `.env-example` as a reference. +5. Create a `.env` file using `.env.example` as a reference. 6. Obtain Supabase credentials: - Go to [Supabase](https://supabase.com/)