-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-core-services.sh
More file actions
executable file
·126 lines (120 loc) · 2.72 KB
/
create-core-services.sh
File metadata and controls
executable file
·126 lines (120 loc) · 2.72 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash
echo "🏗️ Creating core services..."
# API Service
mkdir -p services/api/app/api
cat > services/api/package.json << 'PKG'
{
"name": "@blackroad/api",
"version": "1.0.0",
"private": true,
"description": "BlackRoad OS API Gateway",
"scripts": {
"dev": "next dev -p 3100",
"build": "next build",
"start": "next start -p 3100",
"lint": "next lint",
"type-check": "tsc --noEmit"
},
"dependencies": {
"next": "14.2.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"@blackroad/shared": "workspace:*"
},
"devDependencies": {
"@types/node": "^20",
"typescript": "^5",
"eslint": "^8",
"eslint-config-next": "14.2.0"
}
}
PKG
# Auth Service
mkdir -p services/auth/app/api
cat > services/auth/package.json << 'PKG'
{
"name": "@blackroad/auth",
"version": "1.0.0",
"private": true,
"description": "BlackRoad OS Authentication Service",
"scripts": {
"dev": "next dev -p 3101",
"build": "next build",
"start": "next start -p 3101",
"lint": "next lint",
"type-check": "tsc --noEmit"
},
"dependencies": {
"next": "14.2.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"@blackroad/shared": "workspace:*"
},
"devDependencies": {
"@types/node": "^20",
"typescript": "^5",
"eslint": "^8",
"eslint-config-next": "14.2.0"
}
}
PKG
# Billing Service
mkdir -p services/billing/app/api
cat > services/billing/package.json << 'PKG'
{
"name": "@blackroad/billing",
"version": "1.0.0",
"private": true,
"description": "BlackRoad OS Billing & Subscriptions",
"scripts": {
"dev": "next dev -p 3102",
"build": "next build",
"start": "next start -p 3102",
"lint": "next lint",
"type-check": "tsc --noEmit"
},
"dependencies": {
"next": "14.2.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"@blackroad/shared": "workspace:*",
"stripe": "^14.0.0"
},
"devDependencies": {
"@types/node": "^20",
"typescript": "^5",
"eslint": "^8",
"eslint-config-next": "14.2.0"
}
}
PKG
# Analytics Service
mkdir -p services/analytics/app/api
cat > services/analytics/package.json << 'PKG'
{
"name": "@blackroad/analytics",
"version": "1.0.0",
"private": true,
"description": "BlackRoad OS Analytics Pipeline",
"scripts": {
"dev": "next dev -p 3103",
"build": "next build",
"start": "next start -p 3103",
"lint": "next lint",
"type-check": "tsc --noEmit"
},
"dependencies": {
"next": "14.2.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"@blackroad/shared": "workspace:*"
},
"devDependencies": {
"@types/node": "^20",
"typescript": "^5",
"eslint": "^8",
"eslint-config-next": "14.2.0"
}
}
PKG
echo "✅ Core services created!"