ShonaScript Chii?
Not yet Revised
ShonaScript i programming language inokubatsira kuti udzidzire kunyora code ne shona, kana usati wambonyora code
zvachose.
tsananguro
programming language - i language inonzwisiswa ne computer
code - ma words, ma numbers, kana ma special characters akaita se ma brackets aya "{},()" anoshandiswa mu programming language
shona - i language inoshandiswa ne mamwe ma Zimbabweans pakutaura
#
Zvii zvinodiwa?Kuti ugone kutanga kunyora code
ne ShonaScript, panodiwa:
- Phone kana Computer π» - yekunyorera
code
- Internet π - inongodiwa pakudownloader ma files nezvimwe zvaunozoshandisa
#
Tanga Pano ππΎ#
ShonaScript ApplicationUnokurudzirwa kushandisa application ye ShonaScript inowanikwa ku https://www.shonascript.app/.
Application iyi inonzi Progressive Web Application, zvichireva kuti unogona kui downloader kana kuita add to home screen
yoshanda kunge application yemuphone.
Kana uchinge wave ne application iyi, jamba zve VS Code zviri pazasi apa. Uende ku topic yema variables
#
VS Code, NodeJS setupKana usiri kuda kushandisa application, unogona kushandisa VS code ne zvimwe mu computer
.
Teedzera masteps aya anodiwa kuti ugone kushandisa ShonaScript
mu VS Code.
Kana uchida kubatsirwa, unokurudzirwa kutaura mugroup re whatsapp
#
STEP 1: Node JSDownload Node JS
Unofana kudownloader software
inonzi Node JS
kana usati wamboidownloader. Node JS
inogona kukura zve 55MB
- Enda ku https://nodejs.org/en/download/, wo downloader Node JS inoenderana ne
computer
yaunoshandisa. Unoona painewindows
, kanamacOS
Unogona kuona video
riripazasi apa kana uchikwanisa. Video
iri harina kugadzirwa nesu, asi kana usiri kunzwisisa zvikuitika, bvunza mu group re whatsapp
Kana uchishandisa
Windows
unoenda mucommand prompt
, kana uchishandisamacOS
unoenda muterminal
:- Enda mu
command prompt
/terminal
- Nyora kuti
node -v
- unofana kuona
nhamba
inotanga na "v" sokutiv16.13.1
- kana usiri kuona
nhamba
iyi, unogona kuvharacommand prompt
/terminal
, oivhura oedza zvekare kutinode -v
- kana usati waakuona
nhamba
, zvinoreva kuti hauna kugadziraNodeJS
zvakanaka, saka taura mu group rewhatsapp, ubatsirwe.
- Enda mu
Paku installer
Node JS
, chingobayacontinue
kananext
kusvika waaku installer. Usachinje chinhu.
#
STEP 2: VS Code Uchashandisa VS Code
kunyora code
yako. Usashandise imwe editor
kunze kwe VS Code
, nekuti VS Code
ndiyo inokwanisa kuona ShonaScript
.
Download VS Code
VS Code
inogona kukura zve 171MB
- Enda ku https://code.visualstudio.com/, wo downloader
VS Code
inoenderana necomputer
yaunoshandisa
Unogona kuona video
iri kana uchikwanisa:
#
STEP3: Gadzira Folder "shonascript"Gadzira Folder reShonaScript
- Enda mudesktop
folder
mako, ogadzirafolder
rakanzishonascript
- Vhura VS Code, woenda pamusoro pakanzi
file
- chienda pakanzi
Open Folder
, wotsvaga folder rako rawagadzira mu desktop rakanzishonascript
- Kana pakabuda pakanzi
do you trust the authors
, unotiyes
#
Step 4: ShonaScripttip
- mu
VS Code
, enda pamaextensions
:
Onyora mu search box
kuti ShonaScript
, unofana kuona ShonaScript
semu picture iri pamusoro apa. Wa downloader inonzi syntax highlighter
apa.
- vhura
terminal
muVS Code
- Unofana kuona
terminal
pasi pescreen rako
Mu
terminal
:- nyora kuti
npm i shona -g
, wobayaenter
- kana ukaona mu
terminal
makanzinpm ERR
, nered
, edza kunyora:sudo npm i shona -g
, wobayaenter
- chinonzi
shona
ndicho chinokubatsira kugadzira mafiles anodiwa
- nyora kuti
Mu
terminal
:- nyora kuti
shona hesi
wobayaenter
- unofana kuona izvi mu
terminal
:
- nyora kuti
Ukatarisa mu
folder
rako rawagadzira riya muVS Code
, unofana kuona kutiShonaScript
yagadzira mafiles 4:index.shona
- ndomauchanyoracode
index.js
- usanyore chinhu umushona.js
- usanyore chinhu umupackage.json
- usanyore chinhu umu
Mu
terminal
zvekare, nyora kutinpm i shonascript
, wobayaenter
- Unofana kuona mu folder rako rave ne zvinhu izvi:
- folder rakanzi
node_modules
, usaribate - file rimwe rakanzi
package_lock.json
, usaribate
- folder rakanzi
- Unofana kuona mu folder rako rave ne zvinhu izvi:
Chipinda mu
file
rakanziindex.shona
, unofana kuona pazasi muVS Code
makanziShonascript
seizvi:
- izvi ndizvo zvinoreva kuti waakukwanisa kushandisa
ShonaScript
Mu
index.shona
, dzimaline 1
wonyora kutinyora("Goodluck Zimbabwe")
paline 1
ipapoMu
terminal
, nyora kutinode shona.js
, wobayaenter
. Unofana kusaona ma line ered
muterminal
kanacode
yako ichishanda.Mu
terminal
, nyora kutinode index.js
, wobayaenter
. Unofana kuona muterminal
imomo makanziGoodluck Zimbabwe
.
Makorokotoπ, wanyora code
yako yekutanga ne ShonaScript
πΏπΌ
Chienda kumberi udzidze kuti code
yemu ShonaScript
inonyorwa sei