create-zuplo-api 6.60.20 → 6.60.22

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 (38) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
  3. package/dist/templates/default/README-template.md +0 -29
  4. package/dist/templates/default/config/policies.json +0 -13
  5. package/dist/templates/default/config/routes.oas.json +0 -284
  6. package/dist/templates/default/docs/README-template.md +0 -45
  7. package/dist/templates/default/docs/gitignore +0 -32
  8. package/dist/templates/default/docs/pages/introduction.mdx +0 -153
  9. package/dist/templates/default/docs/pages/markdown.mdx +0 -108
  10. package/dist/templates/default/docs/public/banner-dark.svg +0 -100
  11. package/dist/templates/default/docs/public/banner.svg +0 -100
  12. package/dist/templates/default/docs/tsconfig.json +0 -16
  13. package/dist/templates/default/docs/zudoku.config.tsx +0 -93
  14. package/dist/templates/default/env.example +0 -2
  15. package/dist/templates/default/eslintrc.json +0 -7
  16. package/dist/templates/default/gitignore +0 -10
  17. package/dist/templates/default/modules/hello-world.ts +0 -21
  18. package/dist/templates/default/prettierrc.json +0 -1
  19. package/dist/templates/default/tsconfig.json +0 -19
  20. package/dist/templates/default/vscode/launch.json +0 -37
  21. package/dist/templates/default/vscode/settings.json +0 -20
  22. package/dist/templates/default/zuplo.jsonc +0 -4
  23. package/dist/templates/default-empty/config/policies.json +0 -3
  24. package/dist/templates/default-empty/config/routes.oas.json +0 -8
  25. package/dist/templates/default-empty/docs/README-template.md +0 -45
  26. package/dist/templates/default-empty/docs/gitignore +0 -32
  27. package/dist/templates/default-empty/docs/pages/introduction.mdx +0 -153
  28. package/dist/templates/default-empty/docs/pages/markdown.mdx +0 -108
  29. package/dist/templates/default-empty/docs/public/banner-dark.svg +0 -100
  30. package/dist/templates/default-empty/docs/public/banner.svg +0 -100
  31. package/dist/templates/default-empty/docs/tsconfig.json +0 -16
  32. package/dist/templates/default-empty/docs/zudoku.config.tsx +0 -93
  33. package/dist/templates/default-empty/env.example +0 -2
  34. package/dist/templates/default-empty/eslintrc.json +0 -7
  35. package/dist/templates/default-empty/gitignore +0 -10
  36. package/dist/templates/default-empty/prettierrc.json +0 -1
  37. package/dist/templates/default-empty/tsconfig.json +0 -19
  38. package/dist/templates/default-empty/zuplo.jsonc +0 -4
@@ -1,93 +0,0 @@
1
- import type { ZudokuConfig } from "zudoku";
2
-
3
- /**
4
- * Developer Portal Configuration
5
- * For more information, see:
6
- * https://zuplo.com/docs/dev-portal/zudoku/configuration/overview
7
- */
8
- const config: ZudokuConfig = {
9
- site: {
10
- title: "My Developer Portal",
11
- logo: {
12
- src: {
13
- light: "https://cdn.zuplo.com/assets/my-dev-portal-light.svg",
14
- dark: "https://cdn.zuplo.com/assets/my-dev-portal-dark.svg",
15
- },
16
- },
17
- },
18
- metadata: {
19
- title: "Developer Portal",
20
- description: "Developer Portal",
21
- },
22
- navigation: [
23
- {
24
- type: "category",
25
- label: "Documentation",
26
- items: [
27
- {
28
- type: "category",
29
- label: "Getting Started",
30
- icon: "sparkles",
31
- items: [
32
- {
33
- type: "doc",
34
- file: "introduction",
35
- },
36
- {
37
- type: "doc",
38
- file: "markdown",
39
- },
40
- ],
41
- },
42
- {
43
- type: "category",
44
- label: "Useful Links",
45
- collapsible: false,
46
- icon: "link",
47
- items: [
48
- {
49
- type: "link",
50
- label: "Zuplo Docs",
51
- to: "https://zuplo.com/docs/dev-portal/introduction",
52
- },
53
- {
54
- type: "link",
55
- label: "Developer Portal Docs",
56
- to: "https://zuplo.com/docs/dev-portal/introduction",
57
- },
58
- ],
59
- },
60
- ],
61
- },
62
- {
63
- type: "link",
64
- to: "/api",
65
- label: "API Reference",
66
- },
67
- ],
68
- redirects: [{ from: "/", to: "/api" }],
69
- apis: [
70
- {
71
- type: "file",
72
- input: "../config/routes.oas.json",
73
- path: "api",
74
- },
75
- ],
76
- authentication: {
77
- // IMPORTANT: This is a demo Auth0 configuration.
78
- // In a real application, you should replace these values with your own
79
- // identity provider's configuration.
80
- // This configuration WILL NOT WORK with custom domains.
81
- // For more information, see:
82
- // https://zuplo.com/docs/dev-portal/zudoku/configuration/authentication
83
- type: "auth0",
84
- domain: "auth.zuplo.site",
85
- clientId: "f8I87rdsCRo4nU2FHf0fHVwA9P7xi7Ml",
86
- audience: "https://api.example.com/",
87
- },
88
- apiKeys: {
89
- enabled: true,
90
- },
91
- };
92
-
93
- export default config;
@@ -1,2 +0,0 @@
1
- EXAMPLE_SECRET=👀 What you looking at?
2
- EXAMPLE_CONFIG=https://twitter.com/zuplo
@@ -1,7 +0,0 @@
1
- {
2
- "root": true,
3
- "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
4
- "parser": "@typescript-eslint/parser",
5
- "parserOptions": { "project": ["./tsconfig.json"] },
6
- "plugins": ["@typescript-eslint"]
7
- }
@@ -1,10 +0,0 @@
1
- .zuplo/
2
- .cache/
3
- dist/
4
- node_modules/
5
- .env
6
- .env.zuplo
7
-
8
- # OS Stuff
9
-
10
- .DS_Store
@@ -1,21 +0,0 @@
1
- import { ZuploContext, ZuploRequest } from "@zuplo/runtime";
2
-
3
- export default async function (request: ZuploRequest, context: ZuploContext) {
4
- /**
5
- * Use the log property on context to enjoy
6
- * logging magic when testing your API.
7
- */
8
- context.log.info(`Hi, from inside your zup!`);
9
-
10
- /**
11
- * If you want to proxy an API, you can simply
12
- * return the content of a fetch. Try it by
13
- * uncommenting the line below.
14
- */
15
- // return fetch('http://www.example.com/');
16
-
17
- /**
18
- * In this example, we're just going to return some content.
19
- */
20
- return "What zup?";
21
- }
@@ -1 +0,0 @@
1
- {}
@@ -1,19 +0,0 @@
1
- {
2
- "include": ["modules/**/*", ".zuplo/**/*", "tests/**/*"],
3
- "exclude": ["./node_modules", "./dist"],
4
- "compilerOptions": {
5
- "module": "ESNext",
6
- "target": "ES2022",
7
- "lib": ["ESNext", "WebWorker", "Webworker.Iterable"],
8
- "preserveConstEnums": true,
9
- "moduleResolution": "Bundler",
10
- "useUnknownInCatchVariables": false,
11
- "forceConsistentCasingInFileNames": true,
12
- "importHelpers": true,
13
- "removeComments": true,
14
- "esModuleInterop": true,
15
- "noEmit": true,
16
- "strictNullChecks": true,
17
- "experimentalDecorators": true
18
- }
19
- }
@@ -1,37 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "type": "node",
9
- "request": "launch",
10
- "name": "Launch Zuplo",
11
- "runtimeExecutable": "npx",
12
- "runtimeArgs": [
13
- "@zuplo/cli",
14
- "dev",
15
- "--debug-port",
16
- "9229",
17
- "--port",
18
- "9000"
19
- ],
20
- "console": "integratedTerminal",
21
- "internalConsoleOptions": "neverOpen"
22
- },
23
- {
24
- "name": "Zuplo Gateway",
25
- "type": "node",
26
- "request": "attach",
27
- "restart": true,
28
- "port": 9229
29
- }
30
- ],
31
- "compounds": [
32
- {
33
- "name": "Launch & Attach Zuplo",
34
- "configurations": ["Launch Zuplo", "Zuplo Gateway"]
35
- }
36
- ]
37
- }
@@ -1,20 +0,0 @@
1
- {
2
- "json.schemas": [
3
- {
4
- "fileMatch": ["config/*.oas.json"],
5
- "url": "https://cdn.zuplo.com/schemas/openapi-v3.1-zuplo.json"
6
- },
7
- {
8
- "fileMatch": ["config/policies.json"],
9
- "url": "https://cdn.zuplo.com/schemas/policies.json"
10
- },
11
- {
12
- "fileMatch": ["config/dev-portal.json"],
13
- "url": "https://cdn.zuplo.com/schemas/dev-portal.json"
14
- },
15
- {
16
- "fileMatch": ["docs/sidebar.json"],
17
- "url": "https://cdn.zuplo.com/schemas/sidebar.json"
18
- }
19
- ]
20
- }
@@ -1,4 +0,0 @@
1
- {
2
- "version": 1,
3
- "compatibilityDate": "2025-02-06"
4
- }
@@ -1,3 +0,0 @@
1
- {
2
- "policies": []
3
- }
@@ -1,8 +0,0 @@
1
- {
2
- "openapi": "3.1.0",
3
- "info": {
4
- "version": "1.0.0",
5
- "title": "My Zuplo API"
6
- },
7
- "paths": {}
8
- }
@@ -1,45 +0,0 @@
1
- # Developer Portal
2
-
3
- This is your
4
- [Zuplo Developer Portal](https://zuplo.com/docs/dev-portal/introduction). This
5
- developer portal allows you to ship a beautiful API documentation for your
6
- users. You can customize this portal to match your brand and style.
7
-
8
- This developer portal is configured to work with your Zuplo API. When you
9
- publish your API, your developer portal will be automatically published with the
10
- latest API documentation.
11
-
12
- For more information, visit the
13
- [Documentation](https://zuplo.com/docs/dev-portal/introduction).
14
-
15
- The Zuplo Developer Portal is built on top of the open source
16
- [Zudoku](https://zudoku.dev) project, a powerful tool for creating and managing
17
- API documentation. If you would like to learn more about the project, open a
18
- feature request, or contribute to the codebase, visit the
19
- [Zudoku GitHub repository](https://github.com/zuplo/zudoku).
20
-
21
- ## Local Development
22
-
23
- After you have connected your Zuplo project to
24
- [source control](https://zuplo.com/docs/articles/source-control) you can clone
25
- your project locally. Running the Developer Portal locally allows you to see
26
- changes in real-time with live-reload.
27
-
28
- 1. Clone the repository
29
-
30
- ```bash
31
- git clone https://github.com/my-org/my-repo
32
- cd my-repo
33
- ```
34
-
35
- 2. Install dependencies
36
-
37
- ```bash
38
- npm install
39
- ```
40
-
41
- 3. Start the development server
42
-
43
- ```bash
44
- npm run docs
45
- ```
@@ -1,32 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
-
3
- # dependencies
4
- /node_modules
5
- /.pnp
6
- .pnp.*
7
- .yarn/*
8
- !.yarn/patches
9
- !.yarn/plugins
10
- !.yarn/releases
11
- !.yarn/versions
12
-
13
- # testing
14
- /coverage
15
-
16
- # zudoku
17
- /dist/
18
-
19
- # misc
20
- .DS_Store
21
- *.pem
22
-
23
- # debug
24
- npm-debug.log*
25
- yarn-debug.log*
26
- yarn-error.log*
27
-
28
- # env files (can opt-in for commiting if needed)
29
- .env*
30
-
31
- # typescript
32
- *.tsbuildinfo
@@ -1,153 +0,0 @@
1
- ---
2
- description: Welcome to your new Zudoku documentation site.
3
- sidebar_label: My Developer Portal
4
- sidebar_icon: panel-top
5
- category: ""
6
- ---
7
-
8
- <div>
9
- <img src="/banner.svg" className="dark:hidden" />
10
- <img src="/banner-dark.svg" className="hidden dark:block" />
11
- </div>
12
-
13
- # Welcome to Better API Documentation
14
-
15
- Welcome to your new developer portal that makes sense. 🎉
16
-
17
- This is your new developer portal, built with ["Zudoku by Zuplo"](https://github.com/zuplo/zudoku)
18
- and designed to elevate your API documentation experience. We've streamlined the setup process so
19
- you can focus on what matters most: creating exceptional developer experiences.
20
-
21
- Think of this as your API's professional showcase—presenting your endpoints and documentation in the
22
- best possible light. Whether you're launching innovative new features or improving existing
23
- services, this portal provides the foundation for clear, accessible, and engaging developer
24
- documentation.
25
-
26
- Let's explore what we've configured for you and how you can customize it to perfectly match your
27
- needs.
28
-
29
- ## Let's Review Your Configuration
30
-
31
- The developer portal is configured in the `zudoku.config.tsx` file. We've created a starter
32
- configuration to get you up and running quickly. Let's walk you through everything we've set up so
33
- you know how to customize it:
34
-
35
- <Stepper>
36
-
37
- 1. **Change the Basics**
38
-
39
- First, you may want to change the title and banner we've put in place. These are part of the
40
- `page` section in your configuration.
41
-
42
- :::tip
43
-
44
- **Have a company logo?** Learn how you can
45
- [add your logo](https://zuplo.com/docs/dev-portal/zudoku/configuration/site#logo) in our
46
- documentation.
47
-
48
- :::
49
-
50
- ```jsx
51
- {
52
- // ...
53
- "page": {
54
- "title": "My Developer Portal",
55
- "banner": {
56
- "message": (
57
- <div className="w-full text-center">
58
- <strong>Congrats!</strong> 🙌 You just created your first developer
59
- portal.
60
- </div>
61
- ),
62
- "color": "info",
63
- "dismissible": true,
64
- }
65
- }
66
- ```
67
-
68
- 1. **API Reference**
69
-
70
- Your [API Reference](/api) is generated from your Zuplo OpenAPI file in `../routes.oas.json`—you
71
- can add other APIs whenever you need them. Improve your documentation by adding more details to
72
- the OpenAPI file.
73
-
74
- ```json
75
- {
76
- // ...
77
- "apis": {
78
- "type": "file",
79
- "input": "../config/routes.oas.json",
80
- "navigationId": "api"
81
- }
82
- }
83
- ```
84
-
85
- 1. **Authentication & Login**
86
-
87
- We've configured your project to use [Auth0](https://auth0.com) as an authentication provider
88
- with our demo account. We support many authentication providers—check the
89
- [documentation on how to configure](https://zuplo.com/docs/dev-portal/zudoku/configuration/authentication#authentication-providers)
90
- each one.
91
-
92
- :::caution
93
-
94
- You must change the authentication provider before taking this to **production**. Using our demo
95
- provider is not secure for production use.
96
-
97
- :::
98
-
99
- ```json
100
- {
101
- // ...
102
- "authentication": {
103
- "type": "auth0",
104
- "domain": "auth.zuplo.io",
105
- "clientId": "kWQs12Q9Og4w6zzI82qJSa3klN1sMtvz",
106
- "audience": "https://api.example.com/"
107
- }
108
- }
109
- ```
110
-
111
- 1. **API Keys**
112
-
113
- We've enabled API Keys on your developer portal. This connects to the API Key Service in Zuplo.
114
- To add API Keys for your users, create a consumer with the matching email address in **Services
115
- => API Key Service** in Zuplo, or
116
- [create a Consumer using the Zuplo API](https://zuplo.com/docs/api/api-keys-consumers#creates-a-consumer).
117
-
118
- ```json
119
- {
120
- // ...
121
- "apiKeys": {
122
- "enabled": true
123
- }
124
- }
125
- ```
126
-
127
- </Stepper>
128
-
129
- ## Make It Yours
130
-
131
- You can customize the look and feel of your documentation site by modifying the `theme` section in
132
- `zudoku.config.tsx`. Why not try changing the primary color of your site?
133
-
134
- ```json
135
- {
136
- // ...
137
- "theme": {
138
- "light": {
139
- "primary": "316 100% 50%",
140
- "primaryForeground": "360 100% 100%"
141
- },
142
- "dark": {
143
- "primary": "316 100% 50%",
144
- "primaryForeground": "360 100% 100%"
145
- }
146
- }
147
- // ...
148
- }
149
- ```
150
-
151
- We have extensive customization options available. From colors to fonts and borders, find the
152
- [full list of options](https://zuplo.com/docs/dev-portal/zudoku/customization/colors-theme) in our
153
- documentation.
@@ -1,108 +0,0 @@
1
- # Welcome to Our Documentation
2
-
3
- ## Overview
4
-
5
- This page demonstrates various markdown features and formatting options available in our
6
- documentation system. Whether you're writing technical documentation, guides, or tutorials, these
7
- examples will help you create beautiful and well-structured content.
8
-
9
- ### Key Features
10
-
11
- - **Rich Text Formatting**: Bold, italic, and code formatting
12
- - **Lists**: Ordered and unordered lists
13
- - **Code Blocks**: Syntax highlighting for multiple languages
14
- - **Tables**: Organized data presentation
15
- - **Images**: Visual content integration
16
- - **Links**: Internal and external references
17
-
18
- ## Text Formatting
19
-
20
- You can make text **bold** or _italic_ to emphasize important points. For technical terms, use
21
- `inline code` formatting.
22
-
23
- ### Code Examples
24
-
25
- Here's a simple JavaScript function:
26
-
27
- ```javascript
28
- function greet(name) {
29
- return `Hello, ${name}!`;
30
- }
31
-
32
- // Example usage
33
- console.log(greet("World"));
34
- ```
35
-
36
- And here's a Python example:
37
-
38
- ```python
39
- def calculate_fibonacci(n):
40
- if n <= 1:
41
- return n
42
- return calculate_fibonacci(n-1) + calculate_fibonacci(n-2)
43
-
44
- # Print first 10 Fibonacci numbers
45
- for i in range(10):
46
- print(calculate_fibonacci(i))
47
- ```
48
-
49
- ## Lists and Organization
50
-
51
- ### Unordered Lists
52
-
53
- - First item
54
- - Second item
55
- - Nested item
56
- - Another nested item
57
- - Third item
58
-
59
- ### Ordered Lists
60
-
61
- 1. First step
62
- 2. Second step
63
- 1. Sub-step A
64
- 2. Sub-step B
65
- 3. Third step
66
-
67
- ## Tables
68
-
69
- | Feature | Description | Status |
70
- | ----------- | --------------------- | ------ |
71
- | Markdown | Basic text formatting | ✅ |
72
- | Code Blocks | Syntax highlighting | ✅ |
73
- | Tables | Data organization | ✅ |
74
- | Images | Visual content | ✅ |
75
-
76
- ## Blockquotes
77
-
78
- > "The best way to predict the future is to implement it."
79
- >
80
- > — Alan Kay
81
-
82
- ## Links and References
83
-
84
- - [Internal Link](#overview)
85
- - [External Link](https://example.com)
86
- - [Documentation Home](/)
87
-
88
- ## Horizontal Rules
89
-
90
- ---
91
-
92
- ## Additional Tips
93
-
94
- 1. Use headings to create a clear hierarchy
95
- 2. Keep paragraphs short and focused
96
- 3. Include code examples when relevant
97
- 4. Use lists for better readability
98
- 5. Add tables for structured data
99
-
100
- ## Conclusion
101
-
102
- This example demonstrates the power and flexibility of markdown for creating beautiful
103
- documentation. Feel free to use these patterns in your own documentation to maintain consistency and
104
- readability.
105
-
106
- ---
107
-
108
- _Last updated: March 2024_