Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 2 additions & 0 deletions Frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
node_modules
2 changes: 2 additions & 0 deletions Frontend/env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key-here
24 changes: 12 additions & 12 deletions Frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Frontend/package.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see some changes in the version, I am not sure whether there will be some version conflicts with the existing functionality. Can you please confirm if the auth is working as it was working before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does work perfectly, moreover it is the latest version so it should be a problem

Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
57 changes: 25 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
Expand Down