| sidebar_position | 3 | ||||
|---|---|---|---|---|---|
| slug | /get-started-vscode | ||||
| title | Get Started with VS Code (CLI) | ||||
| description | Get started contributing to the SAP Architecture Center with this step-by-step guide. Learn how to set up your environment, create or update reference architectures, and test your changes locally. | ||||
| sidebar_label | VS Code (CLI) | ||||
| keywords |
|
||||
| image | img/ac-soc-med.png | ||||
| tags |
|
||||
| hide_table_of_contents | false | ||||
| hide_title | false | ||||
| toc_min_heading_level | 2 | ||||
| toc_max_heading_level | 4 | ||||
| draft | false | ||||
| unlisted | false | ||||
| contributors | |||||
| last_update |
|
- Node.js version 20.x or above is required (v20.8.1 or above recommended).
Follow these steps to contribute a reference architecture:
- Create a fork of the repository architecture-center.
- Clone your forked repository.
Run the following command to install all Docusaurus dependencies:
npm install:::warning Note Ensure you are using the correct version of Node.js as mentioned above. :::
You can either create a new reference architecture or add a sub-folder to an existing one. Follow the corresponding steps below:
-
Run the following command to set up the CLI:
npm run setup
-
Generate a new reference architecture by running:
genrefarch
:::warning Note Ensure that you are at the root level of the repository. :::
- Choose the first option: Create ref-arch.
- Fill in the prompts for title, description, keywords, and tags.
- A folder structure will be created in the
docs/ref-archfolder.
-
Run the following command to update dependencies (this is a best practice to avoid dependency issues):
npm update
-
Navigate to the folder where you want to create the sub-page, for example:
cd '/<path_to_your_repository>/docs/ref-arch/RA9999'
-
Generate a new sub-page by running:
genrefarch
-
Choose the second option: Create sub-page in existing ref-arch.
-
Fill in the prompts for title, description, keywords, and tags.
-
The folder structure will be created in the directory you navigated to earlier.
- Navigate inside the
readme.mdfile within the newly created folder structure. - Update the front-matter at the top of the
readme.md.
:::info Know more about Front Matter For more details on front-matter and the necessary changes, refer to the front-matter guidelines. :::
To test the changes locally, run the following command:
npm run startYour project should now be running at http://localhost:3000.
- Run the below command to build the project. Once it finishes, the static files will be generated within the build directory.
npm run build- To test the build locally, run the following command:
npm run serve:::warning Note
Make sure to set draft to false in front-matter to render your architecture after the build.
:::
Your project should now be running at http://localhost:3000.
