Otu esi etinye Ionic Framework na Debian 11

Ionic Framework bụ ngwa n'efu na mepere emepe maka iwulite arụmọrụ, ngwa mkpanaka na desktọpụ dị elu. Ionic na-abịa na integrations maka ewu ewu frameworks dị ka Mmụọ, Emeghachi, na Anya na ọ bụ otu n'ime usoro ndị a ma ama n'etiti ndị mmepe taa na mpaghara ngwa mkpanaka.

N'ime nkuzi a, ị ga-amụta ka esi eme tinye Ionic Framework na Debian 11 Bullseye gị, ndabere ya, mepụta oru ngo, ma mụta ka esi amalite ngwa ule.

Prerequisites

  • OS akwadoro: Nnenna 11 Bullseye
  • Akaụntụ onye ọrụ: sudo ma ọ bụ ohere mgbọrọgwụ
  • Ngwungwu achọrọ: curl, gnupg2 wget & Node.js

Na-emelite Sistemụ Ọrụ

Mbụ, tupu ihe ọ bụla, melite gị Debian Sistemụ arụmọrụ iji hụ na ngwugwu niile dị adị adịla ugbu a:

sudo apt update && sudo apt full-upgrade -y

Wụnye ndabere achọrọ

Iji hụ na nrụnye na-aga nke ọma dịka ịgbaso nkuzi nkuzi anyị, gbasoo iwu a, nke ga-etinye ngwugwu ọ bụla na-efu:

sudo install curl gnupg2 wget -y

Advertisement


Wụnye Node.js 14 LTS na Debian 11

Usoro Ionic ga-achọ ka etinyere Node.js. Debian 11 anaghị abịa na ụdị emelitere ọhụrụ na ebe nchekwa ya, yabụ akwadoro ịwụnye Node.js site na isi mmalite. Iji mee nke a, soro usoro ndị a:

Tinye ya Node.js ebe nchekwa site na iji iwu a:

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

Ọ bụrụ na ịchọrọ ịwụnye nke kachasị ọhụrụ Ndị na-abụghị LTS Node.js ntọhapụ, nke bụ 16 Version, jiri ihe ndị a kama:

curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -

Ugbu a ị tinyela ebe nchekwa ahụ, wụnye Node.js dị ka ndị a:

sudo apt install nodejs

Kwado ụdị ma wuo nke Node.js nke etinyere:

node --version

Ihe atụ mmepụta:

v14.17.5

Wụnye Cordova site na iji NPM Na Debian 11

Ịkwesịrị ịwụnye Cordova na sistemụ arụ ọrụ Debian 11 gị site na iji ya NPM iwu. Nke a ga-etinyekwa ndabere niile achọrọ:

sudo npm install -g cordova

Advertisement


Wụnye Ionic Framework na Debian 11

Iji wụnye usoro Ionic, mee iwu a:

sudo npm i -g @ionic/cli

Rịba ama, @ionic/cli bụ aha ọhụrụ nke ngwugwu ma ọ bụrụ na i tinyegoro ya na mbụ.

N'ikpeazụ, jiri ihe ndị a lelee ụdị a:

ionic -v

Ihe atụ mmepụta:

6.17.0

Mepụta ule oru ngo

Iji nwalee Ionic, ụzọ kacha mma ime nke a bụ imepụta obere ọrụ ngwa ngwa. Iji mee nke a, soro usoro dị n'okpuru:

Nke mbụ, malite Ionic:

ionic start

Na-esote, a ga-akpali gị na ọkachamara okike, ụdị N, ma banye na isi ịga n'ihu:

Ugbu a, a ga-akpali gị ịhọrọ a kpuchie dị ka n'okpuru:

Otu esi etinye Ionic Framework na Debian 11

Họrọ framework nke ị chọrọ ịrụ ọrụ na, na nke a ga-etinye niile software na ndabere chọrọ.

A ga-akpali gị aha oru ngo gi dika n'okpuru:

Otu esi etinye Ionic Framework na Debian 11

Tinye aha oru ngo na pịa banye aga n'ihu.

N'akụkụ ikpeazụ, a ga-akpali gị ịhọrọ ma ọ bụrụ na-amasị gị mmalite template:

Otu esi etinye Ionic Framework na Debian 11

Họrọ template mmalite maka ọrụ gị, jiri ya igodo igodo ka ịnyagharịa, wee pịa tinye igodo imecha.

Mara, a ga-akpali gị ma ọ bụrụ na ịchọrọ ịmepụta otu Akaụntụ forums Ionic, ụdị Y or N, mgbe ahụ ị ga-abịa na emechara mmepụta nke ngwa gị dị njikere:

Otu esi etinye Ionic Framework na Debian 11

Advertisement


Malite ule ngwa gị

Ugbu a ngwa gị adịla njikere, CD n'ime ndekọ na malite ngwa:

cd ./HelloWorld && ionic serve --host 0.0.0.0 --port 8100

Mara, dochie ./Ndewo Ụwa na aha ngwa gị.

Ozugbo ngwa ahụ mechara chịkọta, ị ga-enweta nsonaazụ a:

Otu esi etinye Ionic Framework na Debian 11

Ugbu a, nke a kwesịrị ịmalite ihe nchọgharị weebụ gị ozugbo wee nweta ngwa gị. Ọ bụrụ na nke a emeghị, jiri URL ndị a:

http://server-ip:8100

Ibe ihe nchọgharị ịntanetị gị kwesịrị ịdị ka nke a:

Otu esi etinye Ionic Framework na Debian 11

Ma nke ahụ bụ ya, ị wụnyela ma mepụta ọrụ nnwale nke ọma.

Okwu na mmechi

N'ime nkuzi a, ị mụtara ka esi etinye usoro Ionic, ihe ndabere na Node.js, mepụta ọrụ, wee malite ya. Ionic Framework bụ usoro mmepe mkpanaka mkpanaka kachasị ewu ewu dị taa ma ekwesịrị ileba ya anya ma ọ bụrụ na ị na-eche maka imepụta ngwa mkpanaka.

Idenye aha
Gwa nke
0 Comments
Inline nzaghachi
Lee echiche niile
0
Ga-ahụ n'anya gị echiche, biko okwu.x