Skip to content

Commit 7bf7ff3

Browse files
committed
feat: Add frontend application including chat, ingestion UI, and Docker Compose service integration.
1 parent fd2cfd5 commit 7bf7ff3

File tree

16 files changed

+4203
-131
lines changed

16 files changed

+4203
-131
lines changed

.github/workflows/lint.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
- name: Run Flake8
3737
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3838

39-
# Uncomment when tests are added
40-
# - name: Run Pytest
41-
# run: pytest
39+
build-frontend:
40+
runs-on: ubuntu-latest
41+
defaults:
42+
run:
43+
working-directory: ./frontend
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: Use Node.js
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: '18'
50+
- run: npm ci
51+
- run: npm run lint
52+

.gitignore

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,29 @@ logs/
3131
htmlcov/
3232

3333
# MyPy
34-
.mypy_cache/
34+
.mypy_cache/
35+
36+
# Logs
37+
logs
38+
*.log
39+
npm-debug.log*
40+
yarn-debug.log*
41+
yarn-error.log*
42+
pnpm-debug.log*
43+
lerna-debug.log*
44+
45+
node_modules
46+
dist
47+
dist-ssr
48+
*.local
49+
50+
# Editor directories and files
51+
.vscode/*
52+
!.vscode/extensions.json
53+
.idea
54+
.DS_Store
55+
*.suo
56+
*.ntvs*
57+
*.njsproj
58+
*.sln
59+
*.sw?

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ services:
1515
environment:
1616
- WATCHFILES_FORCE_POLLING=true
1717
restart: unless-stopped
18+
19+
frontend:
20+
build:
21+
context: ./frontend
22+
container_name: rag_frontend
23+
ports:
24+
- "5173:5173"
25+
volumes:
26+
- ./frontend:/app
27+
- /app/node_modules
28+
env_file:
29+
- frontend/.env
30+
restart: unless-stopped

frontend/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_API_URL=http://localhost:8000/api/v1

frontend/.gitignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

frontend/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:18-alpine
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
RUN npm ci
7+
8+
COPY . .
9+
10+
EXPOSE 5173
11+
12+
CMD ["npm", "run", "dev", "--", "--host"]

0 commit comments

Comments
 (0)