You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Codecraft is a graphical programming software which is based on [Scratch 3.0](https://scratch.mit.edu/). It targets teenagers of age 7-16, compatible with WIN/MAC.**
6
-
By using a drag-and-drop interface, Codecraft has been helping users program without the need to write code in traditional text-based programming languages. Since its’ launch in 2018, it’s designed to make it easier for beginners, especially STEAM classrooms, to embrace coding to create projects and prototypes. With a focus on programming microcontrollers and IoT devices, Codecraft has been adapted and trusted by thousands of users all around the world. In 2022, Codecraft was recognized as [Bett Awards Finalist](https://www.seeedstudio.com/blog/2022/04/06/seeed-studio-codecraft-recognized-finalist-by-edtech-awards-2022/) and [The Edtech Awards Cool Tool Finalist](https://www.seeedstudio.com/blog/2022/04/06/seeed-studio-codecraft-recognized-finalist-by-edtech-awards-2022/), two important and in prestigious awards the education technology industry.
6
+
By using a drag-and-drop interface, Codecraft has been helping users program without the need to write code in traditional text-based programming languages. Since its’ launch in 2018, it’s designed to make it easier for beginners, especially STEAM classrooms, to embrace coding to create projects and prototypes. With a focus on programming microcontrollers and IoT devices, Codecraft has been adapted and trusted by thousands of users all around the world. In 2022, Codecraft was recognized as [Bett Awards Finalist](https://www.seeedstudio.com/blog/2022/04/06/seeed-studio-codecraft-recognized-finalist-by-edtech-awards-2022/) and [The Edtech Awards Cool Tool Finalist](https://www.seeedstudio.com/blog/2022/04/06/seeed-studio-codecraft-recognized-finalist-by-edtech-awards-2022/), two important and in prestigious awards the education technology industry.
7
7
8
8
[Codecraft help online](https://www.yuque.com/tinkergen-help-en/codecraft?language=en-us)
9
9
@@ -30,8 +30,11 @@ You can download the latest version from [the download page from our website](ht
30
30
## Prerequisites
31
31
32
32
This project requires:
33
+
33
34
-[Node.js 16+](https://nodejs.org/)
35
+
-[PNPM 9+](https://pnpm.io/)
34
36
-[Python 2.x](https://www.python.org/downloads/release/python-272/), or [Python 3.x](https://www.python.org/downloads/) and make it as the default version
37
+
-[Java Development Kit (JDK)](https://www.oracle.com/java/technologies/downloads/)
# If the error message “script is prohibited on this system” appears on the Windows
87
-
# system, you need to open powershell as an administrator, and then execute
89
+
# If the error message “script is prohibited on this system” appears on the Windows
90
+
# system, you need to open powershell as an administrator, and then execute
88
91
# Set-ExecutionPolicy RemoteSigned
89
92
90
93
cd ./main
91
-
npm install
92
-
rm -r build
94
+
pnpm install
95
+
rm -r build
93
96
```
94
97
95
98
- For Mac
96
99
97
100
```bash
98
-
npm run publish-mac
101
+
pnpm publish-mac
99
102
```
100
103
101
104
- For Linux like
102
105
103
106
```bash
104
-
npm run publish-linux
107
+
pnpm publish-linux
105
108
```
106
109
107
110
- For Windows
108
111
109
112
```bash
110
-
npm run publish-win64
113
+
pnpm publish-win64
111
114
```
112
115
113
116
Once you finish building, you can find the installer under main/build/
114
117
115
118
### Debug Mode
119
+
116
120
If you want to enter debug mode and debug the gui, you need to run the gui locally first. The gui depends on block, l10n, and vm, so you need to compile these three projects first.
117
121
118
122
```bash
119
123
cd ./blocks
120
-
npm install &&npm run build
124
+
pnpm install &&pnpm build
121
125
122
126
cd ./l10n
123
-
npm install &&npm run build
127
+
pnpm install &&pnpm build
124
128
125
129
cd ./vm
126
-
npm install &&npm run build
130
+
pnpm install &&pnpm build
127
131
128
132
cd ./gui
129
-
npm run start
133
+
pnpm start
130
134
```
135
+
131
136
At this time, a web service is running in the current terminal. localhost:8601
The block type value must start with 'argument', 'colour', 'control', 'data', 'event', 'looks', 'math', 'motion', 'operator', 'procedures', 'sensing', 'sound', 'system', 'display', 'azure', 'json', 'mqtt'. these values are defined in CORE_EXTENSIONS of vm/src/serialization/sb2.js and sb3.js files
162
169
163
170
### block code definition
171
+
164
172
code directory: gui/src/lib/generators/${device}/
165
173
166
174
### block ui render
175
+
167
176
ui xml directory: gui/lib/toolboxs/toolbox-${deviceId}-xml.js
177
+
168
178
```bash
169
179
1001: grove zero
170
180
1002: arduino
@@ -178,11 +188,11 @@ ui xml directory: gui/lib/toolboxs/toolbox-${deviceId}-xml.js
You can put your arduino library in this directory
184
195
185
-
186
196
## Contribute
187
197
188
198
`PR welcome`
@@ -193,5 +203,4 @@ Here, we’d also love to announce an open call for contributions to Codecraft o
193
203
194
204
The code contained in this repository and the executable distributions are licensed under the terms of the Apache License 2.0. The executable distributions contain third-party code licensed under other compatible licenses such as BSD-3.
195
205
196
-
197
-
TODO: add documentation on how to create new modules
206
+
TODO: add documentation on how to create new modules
0 commit comments