@bhooai/nexus-cli 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/add.ts +1 -1
- package/src/commands/dev.ts +74 -125
- package/src/commands/init.ts +87 -136
- package/src/devPanel.ts +696 -0
- package/src/devServiceManager.ts +229 -0
- package/src/dispatcher.ts +22 -1
- package/src/examples.ts +90 -0
- package/src/features.ts +261 -0
- package/src/launcher.ts +164 -0
- package/src/layout.ts +101 -0
- package/src/templating/tree.ts +66 -0
- package/src/tui.ts +170 -0
- package/src/wizard.ts +691 -0
- package/templates/base/Dockerfile.ejs +1 -0
- package/templates/base/apps/admin/nginx.conf.ejs +30 -1
- package/templates/base/apps/admin/package.json.ejs +7 -2
- package/templates/base/apps/admin/postcss.config.js +5 -0
- package/templates/base/apps/admin/src/App.tsx +4127 -0
- package/templates/base/apps/admin/src/alertCenter.tsx +150 -0
- package/templates/base/apps/admin/src/api.ts +474 -0
- package/templates/base/apps/admin/src/assets/bhooai-nexus-logo.svg +25 -0
- package/templates/base/apps/admin/src/index.css +3481 -0
- package/templates/base/apps/admin/src/main.tsx.ejs +3 -3
- package/templates/base/apps/admin/src/vite-env.d.ts +19 -0
- package/templates/base/apps/admin/tailwind.config.js +9 -0
- package/templates/base/apps/admin/vite.config.ts.ejs +21 -2
- package/templates/base/apps/ai-server/main.py.ejs +94 -6
- package/templates/base/apps/backend/package.json.ejs +27 -0
- package/templates/base/apps/frontend/package.json.ejs +7 -0
- package/templates/base/apps/frontend/vite.config.ts.ejs +0 -1
- package/templates/base/docker-compose.yml.ejs +6 -1
- package/templates/base/nexus.config.ts.ejs +4 -4
- package/templates/features/auth/apps/backend/src/models/User.ts +21 -0
- package/templates/features/auth/apps/backend/src/routes/auth.ts +95 -0
- package/templates/features/email/apps/backend/src/mail/mailables/WelcomeMail.ts +25 -0
- package/templates/features/email/apps/backend/src/mail/templates/welcome.ejs.ejs +10 -0
- package/templates/features/graphql/apps/backend/src/graphql/post.graph.ts +61 -0
- package/templates/features/graphql/apps/backend/src/models/Post.ts +15 -0
- package/templates/features/payments/apps/backend/src/routes/payments.ts +45 -0
- package/templates/features/queue/apps/backend/src/events/JobQueued.ts +14 -0
- package/templates/features/queue/apps/backend/src/jobs/ExampleJob.ts +18 -0
- package/templates/features/queue/apps/backend/src/listeners/OnJobQueued.ts +12 -0
- package/templates/features/realtime/apps/backend/src/models/Message.ts +14 -0
- package/templates/features/realtime/apps/backend/src/ws/chat.room.ts +56 -0
- package/templates/features/storage/apps/backend/src/routes/uploads.ts +91 -0
|
@@ -13,4 +13,33 @@ server {
|
|
|
13
13
|
proxy_set_header Host $host;
|
|
14
14
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
location /ai/ {
|
|
17
|
+
proxy_pass http://backend:<%= backendPort %>/ai/;
|
|
18
|
+
proxy_http_version 1.1;
|
|
19
|
+
proxy_set_header Host $host;
|
|
20
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
21
|
+
}
|
|
22
|
+
location /auth/ {
|
|
23
|
+
proxy_pass http://backend:<%= backendPort %>/auth/;
|
|
24
|
+
proxy_http_version 1.1;
|
|
25
|
+
proxy_set_header Host $host;
|
|
26
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
27
|
+
}
|
|
28
|
+
location /csrf-token {
|
|
29
|
+
proxy_pass http://backend:<%= backendPort %>/csrf-token;
|
|
30
|
+
proxy_http_version 1.1;
|
|
31
|
+
proxy_set_header Host $host;
|
|
32
|
+
}
|
|
33
|
+
location /uploads/ {
|
|
34
|
+
proxy_pass http://backend:<%= backendPort %>/uploads/;
|
|
35
|
+
proxy_http_version 1.1;
|
|
36
|
+
proxy_set_header Host $host;
|
|
37
|
+
}
|
|
38
|
+
location /ws {
|
|
39
|
+
proxy_pass http://backend:<%= backendPort %>/ws;
|
|
40
|
+
proxy_http_version 1.1;
|
|
41
|
+
proxy_set_header Upgrade $http_upgrade;
|
|
42
|
+
proxy_set_header Connection "upgrade";
|
|
43
|
+
proxy_set_header Host $host;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -8,8 +8,13 @@
|
|
|
8
8
|
"build": "vite build"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@bhooai/nexus-
|
|
11
|
+
"@bhooai/nexus-safe-goto": "*",
|
|
12
12
|
"react": "^18.3.1",
|
|
13
13
|
"react-dom": "^18.3.1"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@bhooai/nexus-postcss": "^2.0.2",
|
|
17
|
+
"tailwindcss": "^3.4.14",
|
|
18
|
+
"vite": "^5.4.10"
|
|
14
19
|
}
|
|
15
|
-
}
|
|
20
|
+
}
|