Skip to content

Commit e45b68f

Browse files
authored
reorganized documentation (#77)
1 parent 770dba9 commit e45b68f

20 files changed

Lines changed: 2077 additions & 0 deletions

File tree

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
Hello everyone, and welcome to the course application development with LLM Open using Apache Open Serverless.
2+
A mileage title worthy of Wartmuller, but it's the Mastro GPT course for friends.
3+
The first step is start the environment, environment that at this moment I have already started.
4+
You can do it by simply going here on GitHub, slash Mastro GPT, and you will find
5+
Here the slide shows it, it says to go to GitHub, Mastro GPT.
6+
You will find the starter, and from here you have to press the code button and launch the code space.
7+
So you see, go to Mastro GPT, launch the starter.
8+
Here is this code button, and here it appears to make a button, this one, create code space on main.
9+
I have already launched it because otherwise it takes a while to start.
10+
So you see that this is already active, it's what I'm working with.
11+
It's not the only job option so you don't have to.
12+
You are not obliged to use the code space on the web because not everyone likes to work in the cloud like I'm doing.
13+
However, but it is convenient then both for training and for other reasons.
14+
For this reason, for this reason I use it and I recommend you to use it too because it saves you a lot.
15+
A lot of time to configure the things but if you want you can configure yours as you want.
16+
So at this point, once launched, all this will start, and above all you will have to have.
17+
These, icons, which I'm matting here at the beginning.
18+
The icon with the little cloud, which actually starts this.
19+
This extension which has the main functions of the, and the first button is the login button so the first step is to login.
20+
To open serverless so the first step is to write your name, your username and password, and login.
21+
And then you should see this message, you successfully logged in.
22+
You can now use open serverless.
23+
Here is the message in all.
24+
Therefore, first step, actually this this I am paying for is not the first lesson, it is the pre-lesson, the zero module.
25+
To initialize to verify that everything works and understand if everything is okay in short.
26+
So if everything is fine you will see the extension, you will see the logins.
27+
And you can login and start working.
28+
Let's take a tour of the environment.
29+
So it is important in addition to the little cloud this other icon, the test tube.
30+
Who?
31+
It must also show the tests.
32+
Therefore, the tests that are there, however, for everything so you should see.
33+
By clicking on the cloud icon, the extension, clicking on the icon of the test tube, you will see the tests.
34+
And then there is one more thing to see this lesson here, you will have to go to the docs icon.
35+
On the documents icon, you will see the list of all the documents.
36+
Under lessons you can find this text, which is the slide.
37+
You only see the source, but actually just click on preview.
38+
And you can see the slide, real already, rendering.
39+
And we also use the source because sometimes we take and use the sources to take the exercises, etc.
40+
So it's convenient to have the slide in markdown, in source.
41+
So this slide, it recapitulates the various parts, document, test, research.
42+
Research is useful, for example.
43+
To find points in the source where you need to intervene to do the exercises.
44+
Ok then.
45+
So recapping documents, search, testing, the open serverless icon.
46+
And here are the buttons to perform the tests.
47+
The first step is to deploy then.
48+
Go to the deploy icon.
49+
That if you don't deploy, you can't run the tests.
50+
So now he's taking the initial code and is installing it.
51+
Here.
52+
Now you can go here and run the test.
53+
And therefore everything works because the test passes.
54+
Ok, now when you work you don't deploy.
55+
But go into development mode, which also allows you to see the user interface.
56+
So now let's also try this other feature, which is on devil.
57+
We'll open here too.
58+
The deployment window.
59+
And now some of you will even see an open button in browser.
60+
If you don't see it.
61+
This is a bit hidden, it is explained in the slide.
62+
In the slide this small detail is explained which is a bit hidden.
63+
There is this antenna below.
64+
This antenna below simply shows the doors.
65+
The doors of the service is launched.
66+
Then devil launches a web server to run the user interface.
67+
So you simply have to click here.
68+
It opens and to see at this icon of the globe also hidden.
69+
But there is the slide that explains it.
70+
And here you can log in.
71+
Then you can log in and since you are Mastro GPT reference to Mastro Geppetto.
72+
We have called the user interface with great effort of imagination Pinocchio.
73+
So you can log in Pinocchio.
74+
The default password is already Geppetto.
75+
The initial password is Pinocchio or Geppetto anyway.
76+
We change it immediately so no problem.
77+
Obviously she immediately tells me that she is not sure.
78+
In fact now I'll show you how to change it.
79+
Here in part of the user interface.
80+
So here I am going to give you a tour.
81+
Then this is user interface.
82+
So all the resort will use Python as a programming language.
83+
But we have developed a user interface that serves as a front end for the applications.
84+
That we will use to make the course but then you don't have to modify it
85+
because this will remain more or less fixed.
86+
You will simply develop chats.
87+
So this is the multi chat application.
88+
So the first chat just to see if everything works is called hello
89+
and does nothing but say hello to whatever you write to him.
90+
Then hello Michelle.
91+
Mirella hello Mirella etc.
92+
And then here there is a chat a little more interesting which is instead the demo
93+
of the characteristics of Pinocchio of this interface.
94+
So basically that this interface can display code.
95+
See you can also close this side view.
96+
So when something is produced that it is interesting part of the side view to view it
97+
or you can view HTML or a chess board here.
98+
Therefore the support for.
99+
So if I ask form shows me a form and I write on it because it's good.
100+
We use this in the exercises CEO etc.
101+
And here it gives me the result of the form.
102+
This is fine.
103+
So you understand that here there is an extendable menu.
104+
This is the menu and there is another thing which is the upload of documents.
105+
So here you can choose a document to upload it.
106+
I'll show you this later.
107+
How to use it.
108+
The side display is customizable so you can powerful extend it with your own displays
109+
and the side view that can be open and closed.
110+
And with this we have seen.
111+
This sums up the features of our interface.
112+
Last step the terminal because we will use a lot of terminal.
113+
Because many many commands are command line and therefore for this reason.
114+
Let's start immediately to show the command line commands and as a command I show you immediately.
115+
The terminal opens in various ways.
116+
The easiest way is to go here terminal new terminal and this opens a terminal.
117+
Okay here.
118+
Let's do a command right away to change the password.
119+
Then the password is actually stored here master GPT packages master GPT login users.
120+
But as you can see it is encrypted so it is not easy to change.
121+
So if I now decide to change the password.
122+
Therefore I give this command OBS AI user update Pinocchio.
123+
And I put another password here I changed it.
124+
Here I changed my password.
125+
Here the login is customizable so instead of using the file you can use anything a database an external system whatever you want.
126+
And of course the easy implementation is that as I increase users of the interface are in the file that we can change which we have changed.
127+
But when we change the users we also have to redeploy so second command is upside.
128+
Deploy master GPT login.
129+
So now he deploys an action to me.
130+
This is to show that you can otherwise you could have gone here do deploy and we deployed them all.
131+
This serves to make it clear which also exist.
132+
Many command line commands that are used to do the most advanced things when you work a lot with the command line.
133+
Then for those who use code space let me give you a note here on GitHub a piece of advice.
134+
Go here go to settings here are code space and here I recommend you to change.
135+
Eventually the timeout because there are 120 hours free so you really do a lot but it puts you the auto off time at 5 or 10 minutes maximum because otherwise it consumes 30 minutes each time and if you forget it you quickly run out of credit.
136+
You can also decide to use and instead of visual studio on the web as I did you can use the local one so you can change this option in reality it is possible.
137+
Also do not use the environment in the cloud but use everything locally with Docker so you can also install new Valaris locally instead of use what we offer regarding all these things for those who are interested.
138+
We can do an ad hoc lesson in which I show how to install in a different way.
139+
For the course we have provided this environment ultra simplified which should allow everyone to start with practically zero effort then course support what is available.
140+
First of all as a support to the new Valaris course enterprise available to everyone with a free account which is you can see includes several services.
141+
So it includes Redis understands Minio includes PostgreSQL although in this course I don't think I'll use it.
142+
You can deploy on AWS G Cloud Azure Akamai on physical servers we for example use Hezner on Ubuntu on Red Hat OpenShift so you to get an account on the our open serverless environment where you can practice.
143+
Gain ask now so if you have already written account we are already preparing it for you or you can go to the master gpt.com website where there is a chatbot and you can ask for it here.
144+
Or you can contact us on LinkedIn and there you send a message on LinkedIn or you can install it yourself on the open serverless site where there is all the documentation for the installation.
145+
So how to install it etc as for support there is discord.
146+
I ask you and I recommend you to use that so go to discord and here we are there are already the first people this is a brand new server.
147+
This is the second lesson so come and this is where we offer support possibly use the Italian channel because the language and then there's always read it.
148+
There is also read it which is a forum and here you can ask your questions and discuss etc so these are the course support options we offer the next step.
149+
And with this I conclude the first module even in reality this is mentioned is lesson zero then we will do the first real lesson go still on the extension then therefore here you see click on the lessons and here simply.
150+
Click on the first lesson so here is downloading all the lessons downloaded the lessons and so we are ready to start and move on to the next lesson.
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
---
2+
title: Lesson 0
3+
weight: 10
4+
draft: true
5+
---
6+
7+
# TO BE REVIEWED!
8+
9+
# 👋 Welcome to the Course: Application Development with LLM Open and Apache Open Serverless
10+
11+
A mileage title worthy of Wertmüller — but for friends, it's simply the **Mastro GPT Course**.
12+
13+
---
14+
15+
## 🚀 Step 1: Start the Environment
16+
17+
To start working, launch the development environment.
18+
19+
### 🟢 Recommended: GitHub Codespace
20+
1. Go to **GitHub → Mastro GPT**: https://github.com/mastrogpt
21+
2. Click the **"Code"** button.
22+
3. Select **"Create codespace on main"**.
23+
4. Wait for it to start (takes some time the first time).
24+
25+
> This is the environment used for the course. It's convenient and preconfigured for both training and development.
26+
27+
---
28+
29+
## ⚙️ Step 2: Explore the Interface Icons
30+
31+
Once your Codespace is running, take note of these key icons in the sidebar:
32+
33+
- ☁️ **Cloud icon**: Opens the Open Serverless extension.
34+
- 🧪 **Test tube icon**: Opens the list of tests.
35+
- 📄 **Docs icon**: Opens course documents and slides.
36+
- 🔍 **Search icon**: Lets you search in your code and documents.
37+
38+
---
39+
40+
## 🔐 Step 3: Login to Open Serverless
41+
42+
1. Click the **Cloud icon**.
43+
2. Press the **Login** button.
44+
3. Enter your **username and password**.
45+
4. You should see the message:
46+
47+
You have successfully logged in. You can now use Open Serverless.
48+
49+
yaml
50+
Copy
51+
Edit
52+
53+
This concludes the initial setup. This is **Lesson Zero**, a pre-lesson to verify that everything works.
54+
55+
---
56+
57+
## 🧪 Step 4: Deploy and Run Tests
58+
59+
To ensure your setup is working:
60+
61+
1. Click the **Deploy icon** inside the extension.
62+
2. This will install the starter project.
63+
3. Once deployed, go to the **Test Tube icon**.
64+
4. Run the tests. If the test passes, your environment is working correctly.
65+
66+
---
67+
68+
## 🧰 Step 5: Use Development Mode
69+
70+
Switch to development mode to run the web interface:
71+
72+
1. Click **Dev Mode** in the Open Serverless extension.
73+
2. This starts a local web server.
74+
75+
If you don’t see the **Open in browser** button:
76+
77+
- Look for the 📡 **Antenna icon** at the bottom bar.
78+
- Click the 🌐 **Globe icon** to open the UI in a browser.
79+
80+
---
81+
82+
## 🤖 Step 6: Meet "Pinocchio" — The User Interface
83+
84+
The web frontend is named **Pinocchio**, a reference to Mastro Geppetto.
85+
86+
### Default login credentials:
87+
- **Username**: Pinocchio
88+
- **Password**: Geppetto (or vice versa)
89+
90+
> You’ll be prompted to change it. Here’s how.
91+
92+
---
93+
94+
## 🔁 Step 7: Change the Password (via Terminal)
95+
96+
1. Open the terminal:
97+
Terminal → New Terminal
98+
99+
2. Run the following command:
100+
101+
bash
102+
obs ai user update Pinocchio
103+
Enter your new password.
104+
105+
Redeploy the login service:
106+
107+
bash
108+
Copy
109+
Edit
110+
obs deploy mastrogpt-login
111+
This shows how command-line tools can be used instead of the GUI for advanced operations.
112+
113+
🧑‍💻 Step 8: Tour the Interface Features
114+
Pinocchio is a multi-chat UI developed in Python. You won't need to change the UI — you'll build backend logic for chat apps.
115+
116+
Available chats:
117+
hello: Responds with a greeting.
118+
119+
demo: Demonstrates Pinocchio’s interface features:
120+
121+
Code rendering
122+
123+
HTML view
124+
125+
Chessboard display
126+
127+
Forms and form submissions
128+
129+
Document uploads
130+
131+
Custom side views
132+
133+
Everything is extendable and customizable.
134+
135+
🧪 Step 9: View the Slides
136+
To view this lesson's materials:
137+
138+
Click the 📄 Docs icon.
139+
140+
Navigate to the lessons/ folder.
141+
142+
Open the lesson markdown file.
143+
144+
Use the Preview tab to view the slide.
145+
146+
Use Source to copy exercises or commands.
147+
148+
💡 Step 10: Tips for Codespaces
149+
To avoid wasting free hours:
150+
151+
Go to GitHub → Settings → Codespaces.
152+
153+
Set Auto-off timeout to 5–10 minutes.
154+
155+
Optionally switch from VS Code web to VS Code desktop.
156+
157+
Alternatively, install and run everything locally using Docker.
158+
159+
We can organize a dedicated lesson on local installation if needed.
160+
161+
☁️ Step 11: Open Serverless Services
162+
Your environment includes:
163+
164+
Redis
165+
166+
MinIO
167+
168+
PostgreSQL (not required for this course)
169+
170+
You can deploy apps on:
171+
172+
AWS
173+
174+
Google Cloud
175+
176+
Azure
177+
178+
Akamai
179+
180+
Hetzner
181+
182+
Ubuntu
183+
184+
OpenShift
185+
186+
🆘 Step 12: Get Support
187+
You can request your free account or support via:
188+
189+
🌐 Website: https://mastrogpt.com
190+
191+
💬 Chatbot on the website
192+
193+
💼 LinkedIn: Send us a message
194+
195+
💻 Discord: Primary support (use the Italian channel if preferred)
196+
197+
🗣️ Reddit: Ask questions and join the discussion
198+
199+
▶️ Step 13: Start Lesson 1
200+
Now that everything is set up:
201+
202+
Go back to the Cloud icon.
203+
204+
Click Lessons.
205+
206+
Select Lesson 1.
207+
208+
All lesson files will be downloaded automatically.
209+
210+
You're now ready to start building!
File renamed without changes.

0 commit comments

Comments
 (0)