Montréal Dreamin'24 - Get Started with ACB

AlexandraNahomiMartn 889 views 31 slides Aug 12, 2024
Slide 1
Slide 1 of 31
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31

About This Presentation

This workshop was presented in Montreal, Canada for the Montreal Dreamin' conference on August 15, 2024.

Presented by Alex Martinez, MuleSoft developer advocate at Salesforce.


Slide Content

Get Started with Anypoint Code Builder

Alex Martinez Developer Advocate at Salesforce alexmartinez.ca About me

Safe Harbour Statement Please be advised that both the speaker and the host are participating in this meet-up solely in their individual capacities and are not acting in any official or formal capacity on behalf of their respective companies. The opinions, views, and content presented during this event represent only those of the speaker and host and do not reflect the official positions, endorsements, or policies of their employers. The organizers and speakers do not endorse, promote, or represent any products, services, or companies discussed during the event and are not authorized spokespersons for their employers. The primary purpose of this presentation is to provide educational insights and general information. While the organizers and speakers aim to offer valuable and relevant knowledge, there is no guarantee that the solutions, strategies, or recommendations discussed will be applicable, effective, or appropriate for your specific business requirements or individual circumstances. The effectiveness of any advice or solutions presented may vary based on particular contexts, and it is strongly advised that you seek professional consultation tailored to your specific needs before making any decisions or taking any actions based on the information provided. Additionally, this presentation is intended solely for informational and educational purposes and is not intended as a promotional tool or endorsement of any products, services, or companies. The organizers and presenters disclaim any and all responsibility or liability for any decisions, actions, or outcomes resulting from the use or application of the information shared during this event. Your understanding and critical engagement with the content are appreciated, and professional advice should be sought as necessary.

THANK YOU

Agenda Pre-requisites First look at ACB Design an API Implement local API Navigating the Mule project Running and Debugging

Pre-requisites (Desktop)

Latest version of Visual Studio Code Install and set up git Anypoint Platform account (can be a trial version) Once those are done, then you can install the Anypoint Extension Pack into your VS Code. ℹ️ For more info, see Getting Started with Anypoint Code Builder . Pre-requisites

First look at ACB

First look Note : Everything from this presentation/event is based on ACB’s June ‘24 release (Anypoint Extension Pack v1.2.2). There are still a few features that need to be added to ACB for it to be comparable to Studio. If you try to follow through the steps in a future release, they might be different. The ACB team appreciates any feedback you may have for future releases.

First look * Theme: MuleSoft Community Theme

First look Log in to Anypoint Platform from here

First look Open the ACB settings Add JVM arguments: -M-Denv=local Select default values when creating a new app Enable Einsten (GA coming this month)

First look Quick Actions: Design an API : RAML/OAS specification or fragment. Implement an API : Create a Mule app based on an API Specification from Exchange (GraphQL, REST, or AsyncAPI). Requires Anypoint Platform account. Develop an Integration : Create an empty Mule app or a Mule app based on a template/example project from Exchange. ℹ️ You can choose Mule runtime versions 4.4, 4.6, or 4.7 and Java versions 11 or 17 on all new projects.

Design an API

Design an API Click on Design an API Write a project name, select a location, and choose a language Click on Create Project

Copy and paste the contents of this file into your project Save the file (ctrl+s for Windows or cmd+s for Mac) Design an API

Preview it with the API Console Design an API

Open Governance Design an API

Open the command palette (ctrl+shift+P for Windows or cmd+shift+P for Mac) Search for mulesoft: Press esc to close Design an API

Implement local API

Implement it locally (no Exchange) Implement local API 1 2 3 4 5 6

API Spec Mule app ℹ️ A Workspace is created to have both API spec and Mule app open at the same time Graphical view XML view Implement local API

Navigating the Mule project

Navigating ℹ️ When you click on a component, you open the Config Panel

Running and Debugging

Run/Debug Run/Debug the app App will run normally as long as there are no breakpoints. Otherwise, the app will be debugged at any point you add the breakpoints.

Once it deploys locally, call your api on localhost:8081/api/users You should receive a 200 OK Run/Debug

Add a breakpoint in the XML Call the app again Run/Debug ℹ️ You can make small changes and hot-deploy a new file locally

Q&A

Share Your Feedback

THANK YOU