Skip to content

Commit 66812d3

Browse files
committed
add api server
1 parent a9e46cf commit 66812d3

File tree

16 files changed

+2245
-37
lines changed

16 files changed

+2245
-37
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ build
3737
# Other
3838
.aider*
3939
memory.json
40-
.gemini
40+
.gemini
41+
.vault

.env

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# API Server Configuration
2+
# Port for the API server (default: 3001)
3+
PORT=3001
4+
5+
# Node environment (development | production)
6+
NODE_ENV=production
7+
8+
# Optional Bearer Token Authentication
9+
# Leave empty or comment out to disable authentication
10+
# When set, all /api/* endpoints require: Authorization: Bearer <token>
11+
# API_AUTH_TOKEN=your-secret-token-here

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# API Server Configuration
2+
# Port for the API server (default: 3001)
3+
PORT=3001
4+
5+
# Node environment (development | production)
6+
NODE_ENV=production
7+
8+
# Optional Bearer Token Authentication
9+
# Leave empty or comment out to disable authentication
10+
# When set, all /api/* endpoints require: Authorization: Bearer <token>
11+
# API_AUTH_TOKEN=your-secret-token-here

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
node_modules/
33
models/
44
.aider*
5-
.env
65
memory.json
76
.gemini

.npmignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
1+
# Git and GitHub
12
.git/
23
.github/
34
.vault/
45
.cursorignore
6+
7+
# Docker/API microservice files (not needed for library users)
8+
api-server.js
9+
Dockerfile
10+
.dockerignore
11+
docker-compose.yml
12+
API.md
13+
.env
14+
.env.example
15+
16+
# Web UI (separate app)
17+
webui/
18+
19+
# Examples (optional - users can view on GitHub)
20+
example/
21+
22+
# Development tools
23+
tools/
24+
25+
# Models and dependencies
526
**/models/
627
**/node_modules/
28+
29+
# Development files
30+
*.log
31+
.DS_Store

0 commit comments

Comments
 (0)