Cov txheej txheem:

Yuav ua li cas khiav js cov ntaub ntawv ntawm Raspberry Pi?
Yuav ua li cas khiav js cov ntaub ntawv ntawm Raspberry Pi?

Video: Yuav ua li cas khiav js cov ntaub ntawv ntawm Raspberry Pi?

Video: Yuav ua li cas khiav js cov ntaub ntawv ntawm Raspberry Pi?
Video: Python! Reading and Writing JSON Files 2024, Kaum ib hlis
Anonim

js thiab tsim ib qho app khoob. js file hauv koj lub tsev directory uas yuav khiav thaum twg koj khau raj koj Raspberry Pi.

js-ib puag ncig ntawm koj Raspberry Pi thiab kom nws khiav ntawm khau raj.

  1. Teeb tsa koj Raspberry Pi .
  2. Nruab Node.
  3. Sau koj Node.
  4. Ntsuam xyuas koj tsab ntawv.
  5. Ua nws khiav ntawm khau raj.

Ib yam li ntawd, koj tuaj yeem siv JavaScript ntawm Raspberry Pi?

JavaScript yeej ib txwm yog scripting lus ntawm Internet khiav hauv browsers. Node. js yog ua rau saum Google's V8 JavaScript cav ki tau khiav nws tus kheej los ntawm qhov browser thiab ntawm lub server uas ua tau ua tej computer, nyob rau hauv peb rooj plaub nws yuav ua tus Raspberry PI.

Ib yam li ntawd, kuv tuaj yeem khiav dab tsi ntawm Raspberry Pi? 26 Txaus siv rau Raspberry Pi

  • Hloov koj lub desktop PC nrog Raspberry Pi.
  • Sau Nrog Koj Raspberry Pi.
  • Ntxiv AirPrint Support rau Koj Pi Print Server.
  • Txiav txoj hlua nrog Kodi: Raspberry Pi Media Center.
  • Teeb lub Retro Gaming Tshuab.
  • Tsim Minecraft Game Server.
  • Tswj tus neeg hlau.
  • Tsim Lub Koob Yees Duab Nres Nres.

Tom qab ntawd, ib tus tuaj yeem nug, koj puas tuaj yeem khiav node js ntawm Raspberry Pi?

Kev txhim kho NodeJS ntawm Rasberry Pi Txhawm rau nruab qhov tseeb version ntawm Node , xyuas kom meej koj 'nyob online thiab tua hluav taws hauv lub davhlau ya nyob twg: sudo su; wget -O - NodeJs - Raspberry - Pi /master/Install- Node .sh | bash; Node yog tam sim no ntsia ( koj ua tau kos los ntawm kev ntaus ntawv node -v).

Kuv yuav ua li cas rau pawg Raspberry Pi?

Hauv Tshooj I, peb yuav saib cov hauv paus ntawm kev teeb tsa kho vajtse thiab tau txais ib pawg neeg teem caij ua haujlwm

  1. Kauj Ruam 0: Tau Txais Cov Kho vajtse.
  2. Kauj ruam 1: nyem lub Raspberry Pis.
  3. Kauj ruam 2: Network teeb.
  4. Kauj ruam 3: Teem lub Raspberry Pis.
  5. Kauj Ruam 4: Sib Koom Cia.
  6. Kauj ruam 5: Configure tus Master Node.
  7. Kauj ruam 6: Configure the Compute Nodes.

Pom zoo: