Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
16 changes: 7 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
*.pyc
node_modules/
.env
build/
dist/
*.pyc
__pycache__/
src/config/supported_distros.py
node_modules/
react-frontend/node_modules/
backend/node_modules/
react-frontend/build/
log/
venv/
node_modules/
backend/node_modules/
.DS_Store
*.log
6 changes: 3 additions & 3 deletions docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ npm install
```bash
cp .env.example .env
```
Ensure `REACT_APP_API_URL` points to your backend URL (e.g., `http://localhost:5000`).
Ensure `VITE_REACT_APP_API_URL` is set to `/sdt` so that API requests are routed through the Vite dev server proxy to your backend (configured in `vite.config.js`).

#### Start the react frontend application
```bash
npm start
npm run dev
```

You can now navigate to the frontend via port 3000 in your web browser.
You can now navigate to the frontend via port 3000 in your web browser.
2 changes: 1 addition & 1 deletion react-frontend/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_URL=http://localhost:5000
VITE_REACT_APP_API_URL=http://localhost:5000
Comment thread
Mansi2007275 marked this conversation as resolved.
15 changes: 15 additions & 0 deletions react-frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Discover Open Source Packages for Z architecture" />
<title>Software Discovery Tool</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading