Skip to content

Commit bc20a86

Browse files
authored
Merge pull request #60 from rootcodelabs/gui-initialization
GUI project initialization
2 parents f89a608 + 3ee26c1 commit bc20a86

File tree

177 files changed

+25090
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+25090
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: RAG GUI eslint check
2+
3+
on:
4+
pull_request:
5+
branches: ["*"]
6+
push:
7+
branches: ["*"]
8+
9+
jobs:
10+
lint:
11+
name: Run ESLint
12+
runs-on: ubuntu-latest
13+
if: github.event_name == 'pull_request'
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '18'
23+
cache: 'npm'
24+
cache-dependency-path: 'GUI/package-lock.json'
25+
26+
- name: Install dependencies
27+
working-directory: ./GUI
28+
run: npm install --legacy-peer-deps
29+
30+
- name: Lint code
31+
working-directory: ./GUI
32+
run: npx eslint "src/**/*.{ts,tsx}" --quiet

GUI/.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
npm-debug.log
3+
build
4+
.git
5+
*.md
6+
.gitignore
7+
.env.development

GUI/.env.development

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
REACT_APP_RUUTER_API_URL=http://localhost:8086
2+
REACT_APP_RUUTER_PRIVATE_API_URL=http://localhost:8088
3+
REACT_APP_EXTERNAL_API_URL=http://localhost:8000
4+
REACT_APP_CUSTOMER_SERVICE_LOGIN=http://localhost:3004/et/dev-auth
5+
REACT_APP_SERVICE_ID=conversations,settings,monitoring
6+
REACT_APP_NOTIFICATION_NODE_URL=http://localhost:4040
7+
REACT_APP_CSP=upgrade-insecure-requests; default-src 'self'; font-src 'self' data:; img-src 'self' data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; object-src 'none'; connect-src 'self' http://localhost:8086 http://localhost:8088 http://localhost:8085 http://localhost:4040;
8+
REACT_APP_ENABLE_HIDDEN_FEATURES=TRUE

GUI/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "react-app"
3+
}

GUI/.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# testing
16+
/coverage
17+
18+
# production
19+
/build
20+
21+
# Editor directories and files
22+
.vscode/*
23+
!.vscode/extensions.json
24+
.idea
25+
.DS_Store
26+
*.suo
27+
*.ntvs*
28+
*.njsproj
29+
*.sln
30+
*.sw?

GUI/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

GUI/.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true
6+
}

GUI/Dockerfile.dev

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:22.0.0-alpine AS image
2+
WORKDIR /app
3+
COPY ./package.json .
4+
5+
FROM image AS build
6+
RUN npm install --legacy-peer-deps --mode=development
7+
COPY . .
8+
RUN ./node_modules/.bin/vite build --mode=development
9+
10+
EXPOSE 3001
11+
12+
ENV REACT_APP_ENABLE_HIDDEN_FEATURES TRUE
13+
14+
CMD ["npm", "run", "dev"]

GUI/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Contains GUI code

GUI/docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: "3.9"
2+
services:
3+
buerokratt_chatbot:
4+
container_name: buerokratt_classifier
5+
build:
6+
context: .
7+
target: web
8+
entrypoint: "/opt/buerokratt-chatbot/rebuild.sh"
9+
ports:
10+
- '3001:3001'

0 commit comments

Comments
 (0)