-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit_script.ps1
More file actions
83 lines (60 loc) · 3.04 KB
/
commit_script.ps1
File metadata and controls
83 lines (60 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
git config user.name "AI Assistant"
git config user.email "bot@example.com"
git add .gitignore
git commit -m "chore: add gitignore"
git add package.json package-lock.json
git commit -m "chore: initialize project dependencies and package.json"
git add server.js
git commit -m "feat: implement express server and api routing"
git add core/dbManager.js
git commit -m "feat: implement sqlite database manager"
git add core/llmService.js
git commit -m "feat: implement local AI inference service via Ollama"
git add public/index.html
git commit -m "feat: create frontend HTML structure"
git add public/styles.css
git commit -m "style: implement premium glassmorphism UI design"
git add public/app.js
git commit -m "feat: implement frontend JS logic and SPA state"
New-Item -ItemType Directory -Force -Path docs
New-Item -ItemType Directory -Force -Path tests
Set-Content -Path README.md -Value "# Communication Intelligence Assistant`nAn enterprise AI tool."
git add README.md
git commit -m "docs: add initial README"
Set-Content -Path README.md -Value ((Get-Content README.md) -join "`n") + "`n`n## Setup`n1. Install Ollama`n2. Run \`node server.js\`."
git add README.md
git commit -m "docs: add setup instructions to README"
Set-Content -Path LICENSE -Value "MIT License`n`nCopyright (c) 2026"
git add LICENSE
git commit -m "chore: add MIT License"
Set-Content -Path .env.example -Value "PORT=3000`nOLLAMA_URL=http://localhost:11434"
git add .env.example
git commit -m "chore: add env example file"
Set-Content -Path docs/API.md -Value "# API Reference`nGET /api/history`nPOST /api/chat"
git add docs/API.md
git commit -m "docs: document backend API endpoints"
Set-Content -Path docs/ARCHITECTURE.md -Value "# Architecture`nExpress -> Ollama -> SQLite"
git add docs/ARCHITECTURE.md
git commit -m "docs: add system architecture diagram details"
Set-Content -Path docs/MODELS.md -Value "# Models`nUsing llama3.2:1b for high speed local inference"
git add docs/MODELS.md
git commit -m "docs: add model requirements documentation"
Set-Content -Path tests/server.test.js -Value "// Test stub for server integration tests"
git add tests/server.test.js
git commit -m "test: add server API test stubs"
Set-Content -Path tests/llm.test.js -Value "// Test stub for llm service isolation"
git add tests/llm.test.js
git commit -m "test: add llm service test stubs"
Set-Content -Path tests/db.test.js -Value "// Test stub for database manager"
git add tests/db.test.js
git commit -m "test: add database manager test stubs"
Set-Content -Path docker-compose.yml -Value "version: '3'`nservices:`n app:`n build: .`n ports:`n - '3000:3000'"
git add docker-compose.yml
git commit -m "chore: add docker-compose for containerization"
Set-Content -Path Dockerfile -Value "FROM node:18-alpine`nWORKDIR /app`nCOPY . .`nRUN npm install`nCMD [`"node`", `"server.js`"]"
git add Dockerfile
git commit -m "chore: add Dockerfile"
Set-Content -Path CONTRIBUTING.md -Value "# Contributing`nFork and submit PRs."
git add CONTRIBUTING.md
git commit -m "docs: add contributing guidelines"
git push -u origin main