appwrite-utils-cli 0.10.85 → 1.0.1

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.
Files changed (178) hide show
  1. package/.appwrite/.yaml_schemas/appwrite-config.schema.json +380 -0
  2. package/.appwrite/.yaml_schemas/collection.schema.json +255 -0
  3. package/.appwrite/collections/Categories.yaml +182 -0
  4. package/.appwrite/collections/ExampleCollection.yaml +36 -0
  5. package/.appwrite/collections/Posts.yaml +227 -0
  6. package/.appwrite/collections/Users.yaml +149 -0
  7. package/.appwrite/config.yaml +109 -0
  8. package/.appwrite/import/README.md +148 -0
  9. package/.appwrite/import/categories-import.yaml +129 -0
  10. package/.appwrite/import/posts-import.yaml +208 -0
  11. package/.appwrite/import/users-import.yaml +130 -0
  12. package/.appwrite/importData/categories.json +194 -0
  13. package/.appwrite/importData/posts.json +270 -0
  14. package/.appwrite/importData/users.json +220 -0
  15. package/.appwrite/schemas/categories.json +128 -0
  16. package/.appwrite/schemas/exampleCollection.json +52 -0
  17. package/.appwrite/schemas/posts.json +173 -0
  18. package/.appwrite/schemas/users.json +125 -0
  19. package/README.md +261 -33
  20. package/dist/collections/attributes.js +3 -2
  21. package/dist/collections/methods.js +56 -38
  22. package/dist/config/yamlConfig.d.ts +501 -0
  23. package/dist/config/yamlConfig.js +452 -0
  24. package/dist/databases/setup.d.ts +6 -0
  25. package/dist/databases/setup.js +119 -0
  26. package/dist/functions/methods.d.ts +1 -1
  27. package/dist/functions/methods.js +5 -2
  28. package/dist/functions/openapi.d.ts +4 -0
  29. package/dist/functions/openapi.js +60 -0
  30. package/dist/interactiveCLI.d.ts +5 -0
  31. package/dist/interactiveCLI.js +196 -52
  32. package/dist/main.js +91 -30
  33. package/dist/migrations/afterImportActions.js +2 -2
  34. package/dist/migrations/appwriteToX.d.ts +10 -0
  35. package/dist/migrations/appwriteToX.js +15 -4
  36. package/dist/migrations/backup.d.ts +16 -16
  37. package/dist/migrations/dataLoader.d.ts +83 -1
  38. package/dist/migrations/dataLoader.js +4 -4
  39. package/dist/migrations/importController.js +25 -18
  40. package/dist/migrations/importDataActions.js +2 -2
  41. package/dist/migrations/logging.d.ts +9 -1
  42. package/dist/migrations/logging.js +41 -22
  43. package/dist/migrations/migrationHelper.d.ts +4 -4
  44. package/dist/migrations/relationships.js +1 -1
  45. package/dist/migrations/services/DataTransformationService.d.ts +55 -0
  46. package/dist/migrations/services/DataTransformationService.js +158 -0
  47. package/dist/migrations/services/FileHandlerService.d.ts +75 -0
  48. package/dist/migrations/services/FileHandlerService.js +236 -0
  49. package/dist/migrations/services/ImportOrchestrator.d.ts +97 -0
  50. package/dist/migrations/services/ImportOrchestrator.js +488 -0
  51. package/dist/migrations/services/RateLimitManager.d.ts +138 -0
  52. package/dist/migrations/services/RateLimitManager.js +279 -0
  53. package/dist/migrations/services/RelationshipResolver.d.ts +120 -0
  54. package/dist/migrations/services/RelationshipResolver.js +332 -0
  55. package/dist/migrations/services/UserMappingService.d.ts +109 -0
  56. package/dist/migrations/services/UserMappingService.js +277 -0
  57. package/dist/migrations/services/ValidationService.d.ts +74 -0
  58. package/dist/migrations/services/ValidationService.js +260 -0
  59. package/dist/migrations/transfer.d.ts +0 -6
  60. package/dist/migrations/transfer.js +16 -132
  61. package/dist/migrations/yaml/YamlImportConfigLoader.d.ts +384 -0
  62. package/dist/migrations/yaml/YamlImportConfigLoader.js +375 -0
  63. package/dist/migrations/yaml/YamlImportIntegration.d.ts +87 -0
  64. package/dist/migrations/yaml/YamlImportIntegration.js +330 -0
  65. package/dist/migrations/yaml/generateImportSchemas.d.ts +17 -0
  66. package/dist/migrations/yaml/generateImportSchemas.js +575 -0
  67. package/dist/schemas/authUser.d.ts +9 -9
  68. package/dist/shared/attributeManager.d.ts +17 -0
  69. package/dist/shared/attributeManager.js +273 -0
  70. package/dist/shared/confirmationDialogs.d.ts +75 -0
  71. package/dist/shared/confirmationDialogs.js +236 -0
  72. package/dist/shared/functionManager.d.ts +48 -0
  73. package/dist/shared/functionManager.js +322 -0
  74. package/dist/shared/indexManager.d.ts +24 -0
  75. package/dist/shared/indexManager.js +150 -0
  76. package/dist/shared/jsonSchemaGenerator.d.ts +51 -0
  77. package/dist/shared/jsonSchemaGenerator.js +313 -0
  78. package/dist/shared/logging.d.ts +10 -0
  79. package/dist/shared/logging.js +46 -0
  80. package/dist/shared/messageFormatter.d.ts +37 -0
  81. package/dist/shared/messageFormatter.js +152 -0
  82. package/dist/shared/migrationHelpers.d.ts +173 -0
  83. package/dist/shared/migrationHelpers.js +142 -0
  84. package/dist/shared/operationLogger.d.ts +3 -0
  85. package/dist/shared/operationLogger.js +25 -0
  86. package/dist/shared/operationQueue.d.ts +13 -0
  87. package/dist/shared/operationQueue.js +79 -0
  88. package/dist/shared/progressManager.d.ts +62 -0
  89. package/dist/shared/progressManager.js +215 -0
  90. package/dist/shared/schemaGenerator.d.ts +18 -0
  91. package/dist/shared/schemaGenerator.js +523 -0
  92. package/dist/storage/methods.d.ts +3 -1
  93. package/dist/storage/methods.js +144 -55
  94. package/dist/storage/schemas.d.ts +56 -16
  95. package/dist/types.d.ts +2 -2
  96. package/dist/types.js +1 -1
  97. package/dist/users/methods.d.ts +16 -0
  98. package/dist/users/methods.js +276 -0
  99. package/dist/utils/configMigration.d.ts +1 -0
  100. package/dist/utils/configMigration.js +156 -0
  101. package/dist/utils/dataConverters.d.ts +46 -0
  102. package/dist/utils/dataConverters.js +139 -0
  103. package/dist/utils/loadConfigs.d.ts +15 -4
  104. package/dist/utils/loadConfigs.js +377 -51
  105. package/dist/utils/schemaStrings.js +2 -1
  106. package/dist/utils/setupFiles.d.ts +2 -1
  107. package/dist/utils/setupFiles.js +723 -28
  108. package/dist/utils/validationRules.d.ts +43 -0
  109. package/dist/utils/validationRules.js +42 -0
  110. package/dist/utils/yamlConverter.d.ts +48 -0
  111. package/dist/utils/yamlConverter.js +98 -0
  112. package/dist/utilsController.js +65 -43
  113. package/package.json +19 -15
  114. package/src/collections/attributes.ts +3 -2
  115. package/src/collections/methods.ts +85 -51
  116. package/src/config/yamlConfig.ts +488 -0
  117. package/src/{migrations/setupDatabase.ts → databases/setup.ts} +11 -5
  118. package/src/functions/methods.ts +8 -4
  119. package/src/functions/templates/count-docs-in-collection/package.json +25 -0
  120. package/src/functions/templates/count-docs-in-collection/tsconfig.json +28 -0
  121. package/src/functions/templates/typescript-node/package.json +24 -0
  122. package/src/functions/templates/typescript-node/tsconfig.json +28 -0
  123. package/src/functions/templates/uv/README.md +31 -0
  124. package/src/functions/templates/uv/pyproject.toml +29 -0
  125. package/src/interactiveCLI.ts +230 -63
  126. package/src/main.ts +111 -37
  127. package/src/migrations/afterImportActions.ts +2 -2
  128. package/src/migrations/appwriteToX.ts +17 -4
  129. package/src/migrations/dataLoader.ts +4 -4
  130. package/src/migrations/importController.ts +30 -22
  131. package/src/migrations/importDataActions.ts +2 -2
  132. package/src/migrations/relationships.ts +1 -1
  133. package/src/migrations/services/DataTransformationService.ts +196 -0
  134. package/src/migrations/services/FileHandlerService.ts +311 -0
  135. package/src/migrations/services/ImportOrchestrator.ts +669 -0
  136. package/src/migrations/services/RateLimitManager.ts +363 -0
  137. package/src/migrations/services/RelationshipResolver.ts +461 -0
  138. package/src/migrations/services/UserMappingService.ts +345 -0
  139. package/src/migrations/services/ValidationService.ts +349 -0
  140. package/src/migrations/transfer.ts +22 -228
  141. package/src/migrations/yaml/YamlImportConfigLoader.ts +427 -0
  142. package/src/migrations/yaml/YamlImportIntegration.ts +419 -0
  143. package/src/migrations/yaml/generateImportSchemas.ts +589 -0
  144. package/src/shared/attributeManager.ts +429 -0
  145. package/src/shared/confirmationDialogs.ts +327 -0
  146. package/src/shared/functionManager.ts +515 -0
  147. package/src/shared/indexManager.ts +253 -0
  148. package/src/shared/jsonSchemaGenerator.ts +403 -0
  149. package/src/shared/logging.ts +74 -0
  150. package/src/shared/messageFormatter.ts +195 -0
  151. package/src/{migrations/migrationHelper.ts → shared/migrationHelpers.ts} +22 -4
  152. package/src/{migrations/helper.ts → shared/operationLogger.ts} +7 -2
  153. package/src/{migrations/queue.ts → shared/operationQueue.ts} +1 -1
  154. package/src/shared/progressManager.ts +278 -0
  155. package/src/{migrations/schemaStrings.ts → shared/schemaGenerator.ts} +71 -17
  156. package/src/storage/methods.ts +199 -78
  157. package/src/types.ts +2 -2
  158. package/src/{migrations/users.ts → users/methods.ts} +2 -2
  159. package/src/utils/configMigration.ts +212 -0
  160. package/src/utils/loadConfigs.ts +414 -52
  161. package/src/utils/schemaStrings.ts +2 -1
  162. package/src/utils/setupFiles.ts +742 -40
  163. package/src/{migrations → utils}/validationRules.ts +1 -1
  164. package/src/utils/yamlConverter.ts +131 -0
  165. package/src/utilsController.ts +75 -54
  166. package/src/functions/templates/poetry/README.md +0 -30
  167. package/src/functions/templates/poetry/pyproject.toml +0 -16
  168. package/src/migrations/attributes.ts +0 -561
  169. package/src/migrations/backup.ts +0 -205
  170. package/src/migrations/databases.ts +0 -39
  171. package/src/migrations/dbHelpers.ts +0 -92
  172. package/src/migrations/indexes.ts +0 -40
  173. package/src/migrations/logging.ts +0 -29
  174. package/src/migrations/storage.ts +0 -538
  175. /package/src/{migrations → functions}/openapi.ts +0 -0
  176. /package/src/functions/templates/{poetry → uv}/src/__init__.py +0 -0
  177. /package/src/functions/templates/{poetry → uv}/src/index.py +0 -0
  178. /package/src/{migrations/converters.ts → utils/dataConverters.ts} +0 -0
@@ -0,0 +1,194 @@
1
+ {
2
+ "RECORDS": [
3
+ {
4
+ "category_id": "cat_001",
5
+ "name": "Technology",
6
+ "slug": "technology",
7
+ "description": "Latest trends, news, and insights in technology, software development, and digital innovation.",
8
+ "parent_id": null,
9
+ "level": 0,
10
+ "sort_order": 1,
11
+ "color_code": "#3B82F6",
12
+ "icon": "desktop-computer",
13
+ "cover_image_url": "https://picsum.photos/800/400?random=tech",
14
+ "is_active": true,
15
+ "is_featured": true,
16
+ "post_count": 0,
17
+ "total_post_count": 0,
18
+ "meta_title": "Technology News & Insights",
19
+ "meta_description": "Stay updated with the latest technology trends, software development news, and digital innovation insights.",
20
+ "guidelines": "Posts should focus on technology trends, software development, programming languages, frameworks, and digital innovation. Please ensure content is accurate and well-researched."
21
+ },
22
+ {
23
+ "category_id": "cat_002",
24
+ "name": "Web Development",
25
+ "slug": "web-development",
26
+ "description": "Frontend, backend, and full-stack web development tutorials, tips, and best practices.",
27
+ "parent_id": "cat_001",
28
+ "level": 1,
29
+ "sort_order": 1,
30
+ "color_code": "#10B981",
31
+ "icon": "code",
32
+ "cover_image_url": "https://picsum.photos/800/400?random=webdev",
33
+ "is_active": true,
34
+ "is_featured": true,
35
+ "post_count": 0,
36
+ "total_post_count": 0,
37
+ "meta_title": "Web Development Tutorials & Tips",
38
+ "meta_description": "Learn web development with our comprehensive tutorials covering frontend, backend, and full-stack development.",
39
+ "guidelines": "Focus on practical web development content including tutorials, code examples, framework guides, and best practices. Include working code examples when possible."
40
+ },
41
+ {
42
+ "category_id": "cat_003",
43
+ "name": "Mobile Development",
44
+ "slug": "mobile-development",
45
+ "description": "iOS, Android, and cross-platform mobile app development resources and tutorials.",
46
+ "parent_id": "cat_001",
47
+ "level": 1,
48
+ "sort_order": 2,
49
+ "color_code": "#8B5CF6",
50
+ "icon": "device-mobile",
51
+ "cover_image_url": "https://picsum.photos/800/400?random=mobile",
52
+ "is_active": true,
53
+ "is_featured": false,
54
+ "post_count": 0,
55
+ "total_post_count": 0,
56
+ "meta_title": "Mobile App Development Guide",
57
+ "meta_description": "Master mobile development with tutorials for iOS, Android, React Native, Flutter, and cross-platform solutions.",
58
+ "guidelines": "Content should cover mobile app development for iOS, Android, or cross-platform solutions. Include screenshots, code samples, and step-by-step instructions."
59
+ },
60
+ {
61
+ "category_id": "cat_004",
62
+ "name": "Design",
63
+ "slug": "design",
64
+ "description": "UI/UX design principles, tools, trends, and creative inspiration for digital products.",
65
+ "parent_id": null,
66
+ "level": 0,
67
+ "sort_order": 2,
68
+ "color_code": "#F59E0B",
69
+ "icon": "color-swatch",
70
+ "cover_image_url": "https://picsum.photos/800/400?random=design",
71
+ "is_active": true,
72
+ "is_featured": true,
73
+ "post_count": 0,
74
+ "total_post_count": 0,
75
+ "meta_title": "UI/UX Design Resources & Inspiration",
76
+ "meta_description": "Discover design principles, tools, trends, and creative inspiration for creating beautiful digital products.",
77
+ "guidelines": "Posts should focus on design principles, UI/UX best practices, design tools, color theory, typography, and user experience. Include visual examples and case studies."
78
+ },
79
+ {
80
+ "category_id": "cat_005",
81
+ "name": "UI Design",
82
+ "slug": "ui-design",
83
+ "description": "User interface design patterns, components, and visual design best practices.",
84
+ "parent_id": "cat_004",
85
+ "level": 1,
86
+ "sort_order": 1,
87
+ "color_code": "#EF4444",
88
+ "icon": "template",
89
+ "cover_image_url": "https://picsum.photos/800/400?random=ui",
90
+ "is_active": true,
91
+ "is_featured": false,
92
+ "post_count": 0,
93
+ "total_post_count": 0,
94
+ "meta_title": "UI Design Patterns & Components",
95
+ "meta_description": "Learn UI design with guides on components, patterns, visual hierarchy, and interface design best practices.",
96
+ "guidelines": "Focus on visual design elements, interface components, design systems, and UI patterns. Include design files, mockups, and visual examples."
97
+ },
98
+ {
99
+ "category_id": "cat_006",
100
+ "name": "UX Research",
101
+ "slug": "ux-research",
102
+ "description": "User experience research methods, usability testing, and user-centered design approaches.",
103
+ "parent_id": "cat_004",
104
+ "level": 1,
105
+ "sort_order": 2,
106
+ "color_code": "#06B6D4",
107
+ "icon": "search",
108
+ "cover_image_url": "https://picsum.photos/800/400?random=ux",
109
+ "is_active": true,
110
+ "is_featured": false,
111
+ "post_count": 0,
112
+ "total_post_count": 0,
113
+ "meta_title": "UX Research Methods & Usability Testing",
114
+ "meta_description": "Master UX research with guides on user testing, personas, journey mapping, and user-centered design methods.",
115
+ "guidelines": "Content should cover UX research methodologies, user testing techniques, data analysis, and user-centered design processes. Include case studies and research findings."
116
+ },
117
+ {
118
+ "category_id": "cat_007",
119
+ "name": "Business",
120
+ "slug": "business",
121
+ "description": "Entrepreneurship, startups, product management, and business strategy insights.",
122
+ "parent_id": null,
123
+ "level": 0,
124
+ "sort_order": 3,
125
+ "color_code": "#059669",
126
+ "icon": "briefcase",
127
+ "cover_image_url": "https://picsum.photos/800/400?random=business",
128
+ "is_active": true,
129
+ "is_featured": false,
130
+ "post_count": 0,
131
+ "total_post_count": 0,
132
+ "meta_title": "Business Strategy & Entrepreneurship",
133
+ "meta_description": "Get insights on entrepreneurship, startup advice, product management, and business strategy for tech companies.",
134
+ "guidelines": "Focus on business strategy, entrepreneurship, product management, startup advice, and industry insights. Provide actionable advice and real-world examples."
135
+ },
136
+ {
137
+ "category_id": "cat_008",
138
+ "name": "Career",
139
+ "slug": "career",
140
+ "description": "Professional development, career advice, and skill-building for tech professionals.",
141
+ "parent_id": null,
142
+ "level": 0,
143
+ "sort_order": 4,
144
+ "color_code": "#7C3AED",
145
+ "icon": "academic-cap",
146
+ "cover_image_url": "https://picsum.photos/800/400?random=career",
147
+ "is_active": true,
148
+ "is_featured": false,
149
+ "post_count": 0,
150
+ "total_post_count": 0,
151
+ "meta_title": "Tech Career Development & Advice",
152
+ "meta_description": "Advance your tech career with professional development tips, interview advice, and skill-building resources.",
153
+ "guidelines": "Content should help tech professionals advance their careers through skill development, interview preparation, networking, and professional growth advice."
154
+ },
155
+ {
156
+ "category_id": "cat_009",
157
+ "name": "Tutorials",
158
+ "slug": "tutorials",
159
+ "description": "Step-by-step guides and hands-on tutorials for various technologies and tools.",
160
+ "parent_id": null,
161
+ "level": 0,
162
+ "sort_order": 5,
163
+ "color_code": "#DC2626",
164
+ "icon": "book-open",
165
+ "cover_image_url": "https://picsum.photos/800/400?random=tutorials",
166
+ "is_active": true,
167
+ "is_featured": true,
168
+ "post_count": 0,
169
+ "total_post_count": 0,
170
+ "meta_title": "Step-by-Step Tech Tutorials",
171
+ "meta_description": "Learn with our comprehensive step-by-step tutorials covering various technologies, tools, and programming concepts.",
172
+ "guidelines": "Tutorials should be well-structured with clear steps, code examples, screenshots, and expected outcomes. Test all instructions before publishing."
173
+ },
174
+ {
175
+ "category_id": "cat_010",
176
+ "name": "News",
177
+ "slug": "news",
178
+ "description": "Latest industry news, product launches, and technology announcements.",
179
+ "parent_id": null,
180
+ "level": 0,
181
+ "sort_order": 6,
182
+ "color_code": "#1F2937",
183
+ "icon": "newspaper",
184
+ "cover_image_url": "https://picsum.photos/800/400?random=news",
185
+ "is_active": true,
186
+ "is_featured": false,
187
+ "post_count": 0,
188
+ "total_post_count": 0,
189
+ "meta_title": "Tech Industry News & Updates",
190
+ "meta_description": "Stay informed with the latest technology news, product launches, and industry announcements.",
191
+ "guidelines": "News posts should be timely, accurate, and well-sourced. Include relevant links and provide context for industry developments."
192
+ }
193
+ ]
194
+ }
@@ -0,0 +1,270 @@
1
+ {
2
+ "RECORDS": [
3
+ {
4
+ "post_id": "post_001",
5
+ "title": "Getting Started with React Hooks: A Comprehensive Guide",
6
+ "slug": "getting-started-react-hooks-comprehensive-guide",
7
+ "content": "<h2>Introduction to React Hooks</h2><p>React Hooks revolutionized the way we write React components by allowing us to use state and other React features without writing a class. In this comprehensive guide, we'll explore the most important hooks and how to use them effectively.</p><h3>useState Hook</h3><p>The useState hook lets you add state to functional components...</p><h3>useEffect Hook</h3><p>The useEffect hook lets you perform side effects in function components...</p><p>This is a detailed tutorial covering practical examples and best practices for using React Hooks in modern web development.</p>",
8
+ "excerpt": "Learn how to effectively use React Hooks in your applications with practical examples and best practices.",
9
+ "author_id": "user_001",
10
+ "category_id": "cat_002",
11
+ "featured_image_url": "https://picsum.photos/1200/600?random=react",
12
+ "gallery_urls": [
13
+ "https://picsum.photos/800/400?random=code1",
14
+ "https://picsum.photos/800/400?random=code2"
15
+ ],
16
+ "tags": ["react", "hooks", "javascript", "frontend", "tutorial"],
17
+ "status": "published",
18
+ "published_at": "2024-01-10T09:00:00.000Z",
19
+ "scheduled_at": null,
20
+ "view_count": 1247,
21
+ "like_count": 89,
22
+ "comment_count": 23,
23
+ "share_count": 45,
24
+ "meta_title": "React Hooks Tutorial - Complete Guide for Beginners",
25
+ "meta_description": "Master React Hooks with our step-by-step guide covering useState, useEffect, and custom hooks with practical examples.",
26
+ "social_image_url": "https://picsum.photos/1200/630?random=reactsocial",
27
+ "reading_time": 12,
28
+ "is_featured": true,
29
+ "is_pinned": false
30
+ },
31
+ {
32
+ "post_id": "post_002",
33
+ "title": "Building Responsive Layouts with CSS Grid and Flexbox",
34
+ "slug": "building-responsive-layouts-css-grid-flexbox",
35
+ "content": "<h2>Modern CSS Layout Techniques</h2><p>Creating responsive layouts has never been easier with CSS Grid and Flexbox. These powerful layout systems give us unprecedented control over our designs.</p><h3>CSS Grid Fundamentals</h3><p>CSS Grid is a two-dimensional layout system that's perfect for creating complex layouts...</p><h3>Flexbox for Component Layout</h3><p>Flexbox excels at one-dimensional layouts and is perfect for component-level design...</p>",
36
+ "excerpt": "Master modern CSS layout techniques using CSS Grid and Flexbox to create responsive, flexible designs.",
37
+ "author_id": "user_002",
38
+ "category_id": "cat_002",
39
+ "featured_image_url": "https://picsum.photos/1200/600?random=css",
40
+ "gallery_urls": [],
41
+ "tags": ["css", "grid", "flexbox", "responsive", "layout"],
42
+ "status": "published",
43
+ "published_at": "2024-01-08T14:30:00.000Z",
44
+ "scheduled_at": null,
45
+ "view_count": 892,
46
+ "like_count": 67,
47
+ "comment_count": 15,
48
+ "share_count": 32,
49
+ "meta_title": "CSS Grid and Flexbox Tutorial - Responsive Layout Guide",
50
+ "meta_description": "Learn to build responsive layouts with CSS Grid and Flexbox. Complete tutorial with examples and best practices.",
51
+ "social_image_url": "https://picsum.photos/1200/630?random=csssocial",
52
+ "reading_time": 8,
53
+ "is_featured": true,
54
+ "is_pinned": false
55
+ },
56
+ {
57
+ "post_id": "post_003",
58
+ "title": "iOS App Development with SwiftUI: Building Your First App",
59
+ "slug": "ios-app-development-swiftui-first-app",
60
+ "content": "<h2>Introduction to SwiftUI</h2><p>SwiftUI is Apple's innovative, simple way to build user interfaces across all Apple platforms with just one set of tools and APIs.</p><h3>Setting Up Your First Project</h3><p>Let's start by creating a new SwiftUI project in Xcode...</p><h3>Building the User Interface</h3><p>SwiftUI uses a declarative syntax that's easy to read and natural to write...</p>",
61
+ "excerpt": "Learn how to build your first iOS app using SwiftUI with step-by-step instructions and practical examples.",
62
+ "author_id": "user_010",
63
+ "category_id": "cat_003",
64
+ "featured_image_url": "https://picsum.photos/1200/600?random=ios",
65
+ "gallery_urls": [
66
+ "https://picsum.photos/400/800?random=iphone1",
67
+ "https://picsum.photos/400/800?random=iphone2",
68
+ "https://picsum.photos/400/800?random=iphone3"
69
+ ],
70
+ "tags": ["ios", "swiftui", "swift", "mobile", "apple"],
71
+ "status": "published",
72
+ "published_at": "2024-01-12T11:15:00.000Z",
73
+ "scheduled_at": null,
74
+ "view_count": 634,
75
+ "like_count": 45,
76
+ "comment_count": 12,
77
+ "share_count": 28,
78
+ "meta_title": "SwiftUI Tutorial - Build Your First iOS App",
79
+ "meta_description": "Complete SwiftUI tutorial for beginners. Learn to build iOS apps with Apple's modern UI framework.",
80
+ "social_image_url": "https://picsum.photos/1200/630?random=swiftuisocial",
81
+ "reading_time": 15,
82
+ "is_featured": false,
83
+ "is_pinned": false
84
+ },
85
+ {
86
+ "post_id": "post_004",
87
+ "title": "Design Systems: Creating Consistent User Interfaces",
88
+ "slug": "design-systems-creating-consistent-user-interfaces",
89
+ "content": "<h2>What is a Design System?</h2><p>A design system is a collection of reusable components, guided by clear standards, that can be assembled together to build any number of applications.</p><h3>Components and Patterns</h3><p>Design systems include UI components, design tokens, and usage guidelines...</p><h3>Implementation Strategies</h3><p>Successfully implementing a design system requires careful planning and team collaboration...</p>",
90
+ "excerpt": "Discover how to create and implement design systems that ensure consistency and efficiency across your products.",
91
+ "author_id": "user_002",
92
+ "category_id": "cat_005",
93
+ "featured_image_url": "https://picsum.photos/1200/600?random=design",
94
+ "gallery_urls": [],
95
+ "tags": ["design-system", "ui", "components", "consistency", "branding"],
96
+ "status": "published",
97
+ "published_at": "2024-01-09T16:45:00.000Z",
98
+ "scheduled_at": null,
99
+ "view_count": 756,
100
+ "like_count": 58,
101
+ "comment_count": 18,
102
+ "share_count": 41,
103
+ "meta_title": "Design Systems Guide - Building Consistent UI",
104
+ "meta_description": "Learn how to create and implement design systems for consistent, scalable user interfaces across your products.",
105
+ "social_image_url": "https://picsum.photos/1200/630?random=designsystem",
106
+ "reading_time": 10,
107
+ "is_featured": true,
108
+ "is_pinned": false
109
+ },
110
+ {
111
+ "post_id": "post_005",
112
+ "title": "Understanding User Research: Methods and Best Practices",
113
+ "slug": "understanding-user-research-methods-best-practices",
114
+ "content": "<h2>The Importance of User Research</h2><p>User research is the foundation of user-centered design. It helps us understand our users' needs, behaviors, and motivations.</p><h3>Qualitative Research Methods</h3><p>Interviews, usability testing, and observation provide deep insights into user behavior...</p><h3>Quantitative Research Methods</h3><p>Surveys, analytics, and A/B testing give us measurable data about user preferences...</p>",
115
+ "excerpt": "Learn essential user research methods and best practices to create better user experiences based on real user data.",
116
+ "author_id": "user_005",
117
+ "category_id": "cat_006",
118
+ "featured_image_url": "https://picsum.photos/1200/600?random=research",
119
+ "gallery_urls": [
120
+ "https://picsum.photos/800/400?random=survey",
121
+ "https://picsum.photos/800/400?random=interview"
122
+ ],
123
+ "tags": ["ux-research", "user-testing", "design", "methodology", "data"],
124
+ "status": "published",
125
+ "published_at": "2024-01-11T13:20:00.000Z",
126
+ "scheduled_at": null,
127
+ "view_count": 423,
128
+ "like_count": 34,
129
+ "comment_count": 8,
130
+ "share_count": 19,
131
+ "meta_title": "User Research Methods - UX Research Guide",
132
+ "meta_description": "Master user research with our comprehensive guide covering qualitative and quantitative research methods.",
133
+ "social_image_url": "https://picsum.photos/1200/630?random=uxresearch",
134
+ "reading_time": 9,
135
+ "is_featured": false,
136
+ "is_pinned": false
137
+ },
138
+ {
139
+ "post_id": "post_006",
140
+ "title": "Node.js Performance Optimization: Tips and Techniques",
141
+ "slug": "nodejs-performance-optimization-tips-techniques",
142
+ "content": "<h2>Why Performance Matters</h2><p>Performance optimization is crucial for Node.js applications, especially as they scale. Let's explore the most effective techniques.</p><h3>Memory Management</h3><p>Proper memory management prevents memory leaks and improves application stability...</p><h3>Asynchronous Programming Best Practices</h3><p>Leveraging Node.js's asynchronous nature is key to building performant applications...</p>",
143
+ "excerpt": "Optimize your Node.js applications with proven performance techniques and best practices for scalable backend systems.",
144
+ "author_id": "user_006",
145
+ "category_id": "cat_002",
146
+ "featured_image_url": "https://picsum.photos/1200/600?random=nodejs",
147
+ "gallery_urls": [],
148
+ "tags": ["nodejs", "performance", "backend", "optimization", "javascript"],
149
+ "status": "published",
150
+ "published_at": "2024-01-07T10:30:00.000Z",
151
+ "scheduled_at": null,
152
+ "view_count": 1089,
153
+ "like_count": 76,
154
+ "comment_count": 29,
155
+ "share_count": 52,
156
+ "meta_title": "Node.js Performance Optimization - Backend Tutorial",
157
+ "meta_description": "Learn Node.js performance optimization techniques for building fast, scalable backend applications.",
158
+ "social_image_url": "https://picsum.photos/1200/630?random=nodejsperf",
159
+ "reading_time": 11,
160
+ "is_featured": false,
161
+ "is_pinned": true
162
+ },
163
+ {
164
+ "post_id": "post_007",
165
+ "title": "Machine Learning for Web Developers: Getting Started with TensorFlow.js",
166
+ "slug": "machine-learning-web-developers-tensorflowjs",
167
+ "content": "<h2>AI in the Browser</h2><p>TensorFlow.js brings machine learning to web browsers, enabling developers to create intelligent web applications without server-side processing.</p><h3>Basic Concepts</h3><p>Understanding tensors, models, and neural networks is essential for getting started...</p><h3>Building Your First Model</h3><p>Let's create a simple image classification model that runs entirely in the browser...</p>",
168
+ "excerpt": "Explore machine learning in web development using TensorFlow.js to build intelligent browser-based applications.",
169
+ "author_id": "user_007",
170
+ "category_id": "cat_002",
171
+ "featured_image_url": "https://picsum.photos/1200/600?random=ml",
172
+ "gallery_urls": [
173
+ "https://picsum.photos/800/400?random=ai1",
174
+ "https://picsum.photos/800/400?random=ai2"
175
+ ],
176
+ "tags": ["machine-learning", "tensorflow", "ai", "javascript", "web"],
177
+ "status": "draft",
178
+ "published_at": null,
179
+ "scheduled_at": "2024-01-20T09:00:00.000Z",
180
+ "view_count": 0,
181
+ "like_count": 0,
182
+ "comment_count": 0,
183
+ "share_count": 0,
184
+ "meta_title": "TensorFlow.js Tutorial - Machine Learning for Web",
185
+ "meta_description": "Learn machine learning for web development with TensorFlow.js. Build AI-powered web applications.",
186
+ "social_image_url": "https://picsum.photos/1200/630?random=tensorflowjs",
187
+ "reading_time": 14,
188
+ "is_featured": false,
189
+ "is_pinned": false
190
+ },
191
+ {
192
+ "post_id": "post_008",
193
+ "title": "Career Transition: From Bootcamp to Tech Job Success",
194
+ "slug": "career-transition-bootcamp-tech-job-success",
195
+ "content": "<h2>Making the Leap</h2><p>Transitioning from a coding bootcamp to a successful tech career requires strategic planning and continuous learning.</p><h3>Building a Strong Portfolio</h3><p>Your portfolio is your calling card. It should showcase your best work and demonstrate your problem-solving abilities...</p><h3>Networking and Job Search Strategies</h3><p>Building professional relationships and strategic job searching can accelerate your career transition...</p>",
196
+ "excerpt": "Navigate your career transition from coding bootcamp to tech professional with proven strategies and practical advice.",
197
+ "author_id": "user_003",
198
+ "category_id": "cat_008",
199
+ "featured_image_url": "https://picsum.photos/1200/600?random=career",
200
+ "gallery_urls": [],
201
+ "tags": ["career", "bootcamp", "job-search", "portfolio", "networking"],
202
+ "status": "published",
203
+ "published_at": "2024-01-06T08:15:00.000Z",
204
+ "scheduled_at": null,
205
+ "view_count": 567,
206
+ "like_count": 42,
207
+ "comment_count": 16,
208
+ "share_count": 35,
209
+ "meta_title": "Bootcamp to Tech Job - Career Transition Guide",
210
+ "meta_description": "Successfully transition from coding bootcamp to tech career with our comprehensive guide and proven strategies.",
211
+ "social_image_url": "https://picsum.photos/1200/630?random=careerchange",
212
+ "reading_time": 7,
213
+ "is_featured": false,
214
+ "is_pinned": false
215
+ },
216
+ {
217
+ "post_id": "post_009",
218
+ "title": "Cybersecurity Fundamentals: Protecting Your Applications",
219
+ "slug": "cybersecurity-fundamentals-protecting-applications",
220
+ "content": "<h2>Security by Design</h2><p>Building secure applications requires understanding common vulnerabilities and implementing security measures from the ground up.</p><h3>Common Security Threats</h3><p>SQL injection, XSS, and CSRF are among the most common web application vulnerabilities...</p><h3>Security Best Practices</h3><p>Implementing proper authentication, authorization, and data encryption is essential...</p>",
221
+ "excerpt": "Learn essential cybersecurity fundamentals to protect your applications from common threats and vulnerabilities.",
222
+ "author_id": "user_009",
223
+ "category_id": "cat_002",
224
+ "featured_image_url": "https://picsum.photos/1200/600?random=security",
225
+ "gallery_urls": [],
226
+ "tags": ["cybersecurity", "security", "web-security", "encryption", "authentication"],
227
+ "status": "published",
228
+ "published_at": "2024-01-13T15:45:00.000Z",
229
+ "scheduled_at": null,
230
+ "view_count": 834,
231
+ "like_count": 61,
232
+ "comment_count": 22,
233
+ "share_count": 48,
234
+ "meta_title": "Web Application Security - Cybersecurity Guide",
235
+ "meta_description": "Protect your applications with essential cybersecurity fundamentals and security best practices.",
236
+ "social_image_url": "https://picsum.photos/1200/630?random=cybersec",
237
+ "reading_time": 13,
238
+ "is_featured": true,
239
+ "is_pinned": false
240
+ },
241
+ {
242
+ "post_id": "post_010",
243
+ "title": "Building Scalable APIs with GraphQL and Apollo",
244
+ "slug": "building-scalable-apis-graphql-apollo",
245
+ "content": "<h2>GraphQL Advantages</h2><p>GraphQL provides a more efficient, powerful, and flexible alternative to REST APIs, allowing clients to request exactly the data they need.</p><h3>Setting Up Apollo Server</h3><p>Apollo Server makes it easy to build a GraphQL API that works with any GraphQL client...</p><h3>Advanced GraphQL Patterns</h3><p>Subscriptions, federation, and caching strategies for production-ready GraphQL APIs...</p>",
246
+ "excerpt": "Master GraphQL and Apollo to build efficient, scalable APIs with powerful querying capabilities and real-time features.",
247
+ "author_id": "user_004",
248
+ "category_id": "cat_002",
249
+ "featured_image_url": "https://picsum.photos/1200/600?random=graphql",
250
+ "gallery_urls": [
251
+ "https://picsum.photos/800/400?random=api1",
252
+ "https://picsum.photos/800/400?random=api2"
253
+ ],
254
+ "tags": ["graphql", "apollo", "api", "backend", "scalability"],
255
+ "status": "published",
256
+ "published_at": "2024-01-14T12:00:00.000Z",
257
+ "scheduled_at": null,
258
+ "view_count": 445,
259
+ "like_count": 38,
260
+ "comment_count": 11,
261
+ "share_count": 25,
262
+ "meta_title": "GraphQL API Tutorial - Apollo Server Guide",
263
+ "meta_description": "Build scalable GraphQL APIs with Apollo Server. Complete tutorial with advanced patterns and best practices.",
264
+ "social_image_url": "https://picsum.photos/1200/630?random=apollographql",
265
+ "reading_time": 16,
266
+ "is_featured": false,
267
+ "is_pinned": false
268
+ }
269
+ ]
270
+ }