sare26 commited on
Commit
2129ef9
·
verified ·
1 Parent(s): 31a8c31

Upload 6 files

Browse files
Files changed (5) hide show
  1. .gitignore +49 -0
  2. .npmrc +2 -0
  3. .replit +129 -0
  4. .replitignore +5 -0
  5. Dockerfile +26 -0
.gitignore ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2
+
3
+ # compiled output
4
+ dist
5
+ tmp
6
+ out-tsc
7
+ *.tsbuildinfo
8
+ .expo
9
+ .expo-shared
10
+
11
+ # dependencies
12
+ node_modules
13
+
14
+ # IDEs and editors
15
+ /.idea
16
+ .project
17
+ .classpath
18
+ .c9/
19
+ *.launch
20
+ .settings/
21
+ *.sublime-workspace
22
+
23
+ # IDE - VSCode
24
+ .vscode/*
25
+ !.vscode/settings.json
26
+ !.vscode/tasks.json
27
+ !.vscode/launch.json
28
+ !.vscode/extensions.json
29
+
30
+ # misc
31
+ /.sass-cache
32
+ /connect.lock
33
+ /coverage
34
+ /libpeerconnection.log
35
+ npm-debug.log
36
+ yarn-error.log
37
+ testem.log
38
+ /typings
39
+
40
+ # System Files
41
+ .DS_Store
42
+ Thumbs.db
43
+
44
+ .cursor/rules/nx-rules.mdc
45
+ .github/instructions/nx.instructions.md
46
+
47
+ # Replit
48
+ .cache/
49
+ .local/
.npmrc ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ auto-install-peers=false
2
+ strict-peer-dependencies=false
.replit ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ modules = ["nodejs-24", "postgresql-16"]
2
+
3
+ [deployment]
4
+ router = "application"
5
+ deploymentTarget = "autoscale"
6
+
7
+ [deployment.postBuild]
8
+ args = ["pnpm", "store", "prune"]
9
+ env = { "CI" = "true" }
10
+
11
+ [workflows]
12
+ runButton = "Project"
13
+
14
+ [[workflows.workflow]]
15
+ name = "artifacts/fb-publisher: web"
16
+ author = "agent"
17
+ mode = "sequential"
18
+
19
+ [workflows.workflow.metadata]
20
+ outputType = "webview"
21
+ artifactId = "artifacts/fb-publisher"
22
+
23
+ [[workflows.workflow.tasks]]
24
+ task = "shell.exec"
25
+ args = "pnpm --filter @workspace/fb-publisher run dev"
26
+ cwd = "./artifacts/fb-publisher"
27
+ waitForPort = 18305
28
+ router = "path"
29
+
30
+ [workflows.workflow.tasks.env]
31
+ PORT = "18305"
32
+ BASE_PATH = "/"
33
+
34
+ [[workflows.workflow]]
35
+ name = "artifacts/api-server: API Server"
36
+ author = "agent"
37
+ mode = "sequential"
38
+
39
+ [workflows.workflow.metadata]
40
+ outputType = "webview"
41
+ artifactId = "3B4_FFSkEVBkAeYMFRJ2e"
42
+
43
+ [[workflows.workflow.tasks]]
44
+ task = "shell.exec"
45
+ args = "pnpm --filter @workspace/api-server run dev"
46
+ cwd = "./artifacts/api-server"
47
+ waitForPort = 8080
48
+
49
+ [workflows.workflow.tasks.env]
50
+ PORT = "8080"
51
+
52
+ [[workflows.workflow]]
53
+ name = "artifacts/mockup-sandbox: Component Preview Server"
54
+ author = "agent"
55
+ mode = "sequential"
56
+
57
+ [workflows.workflow.metadata]
58
+ outputType = "webview"
59
+ artifactId = "XegfDyZt7HqfW2Bb8Ghoy"
60
+ isCanvasWorkflow = true
61
+
62
+ [[workflows.workflow.tasks]]
63
+ task = "shell.exec"
64
+ args = "pnpm --filter @workspace/mockup-sandbox run dev"
65
+ cwd = "./artifacts/mockup-sandbox"
66
+ waitForPort = 8081
67
+
68
+ [workflows.workflow.tasks.env]
69
+ PORT = "8081"
70
+ BASE_PATH = "/__mockup"
71
+
72
+ [agent]
73
+ stack = "PNPM_WORKSPACE"
74
+ expertMode = true
75
+
76
+ [postMerge]
77
+ path = "scripts/post-merge.sh"
78
+ timeoutMs = 20000
79
+
80
+ [[ports]]
81
+ localPort = 8080
82
+ externalPort = 8080
83
+
84
+ [[ports]]
85
+ localPort = 8081
86
+ externalPort = 80
87
+
88
+ [[ports]]
89
+ localPort = 8082
90
+ externalPort = 3001
91
+
92
+ [[ports]]
93
+ localPort = 8083
94
+ externalPort = 3002
95
+
96
+ [[ports]]
97
+ localPort = 8084
98
+ externalPort = 4200
99
+
100
+ [[ports]]
101
+ localPort = 8085
102
+ externalPort = 3003
103
+
104
+ [[ports]]
105
+ localPort = 8086
106
+ externalPort = 5000
107
+
108
+ [[ports]]
109
+ localPort = 8087
110
+ externalPort = 5173
111
+
112
+ [[ports]]
113
+ localPort = 8088
114
+ externalPort = 6000
115
+
116
+ [[ports]]
117
+ localPort = 18305
118
+ externalPort = 3000
119
+
120
+ [userenv]
121
+
122
+ [userenv.shared]
123
+ VITE_CLERK_PUBLISHABLE_KEY = "pk_test_bmV4dC1qZW5uZXQtNDEuY2xlcmsuYWNjb3VudHMuZGV2JA"
124
+ PAYPAL_MODE = "live"
125
+
126
+ [userenv.development]
127
+
128
+ [nix]
129
+ channel = "stable-25_05"
.replitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # The format of this file is identical to `.dockerignore`.
2
+ # It is used to reduce the size of deployed images to make the process of publishing faster.
3
+
4
+ # No need to store the pnpm store twice.
5
+ .local
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/*
6
+
7
+ COPY . .
8
+
9
+ RUN npm install -g pnpm
10
+ RUN pnpm install
11
+
12
+ # 🔨 بناء الواجهة الأمامية - استخدام CLERK_PUBLISHABLE_KEY من Secrets
13
+ RUN --mount=type=secret,id=CLERK_PUBLISHABLE_KEY \
14
+ export VITE_CLERK_PUBLISHABLE_KEY=$(cat /run/secrets/CLERK_PUBLISHABLE_KEY) && \
15
+ pnpm --filter ./artifacts/fb-publisher run build
16
+
17
+ # 🔨 بناء السيرفر
18
+ RUN --mount=type=secret,id=CLERK_PUBLISHABLE_KEY \
19
+ export VITE_CLERK_PUBLISHABLE_KEY=$(cat /run/secrets/CLERK_PUBLISHABLE_KEY) && \
20
+ pnpm --filter @workspace/api-server run build
21
+
22
+ ENV PORT=7860
23
+ ENV NODE_ENV=production
24
+ EXPOSE 7860
25
+
26
+ CMD ["pnpm", "--filter", "@workspace/api-server", "run", "start"]