![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_1](/userfiles/21/4370_1.webp)
Wannan labarin ya gabatar da jagorar mataki-mataki-mataki don saita sama da amfani da Nodejsscan don sast. Masu karatu za su iya sanin kansu da misalin aikin shigarwa.
Nodejscan shine na'urar daukar hoto mai lamba wanda ake amfani da shi wajen bincika kasawar tsaro a aikace-aikacen Node.js. Ya kamata a tabbatar da ingantaccen nodejscan na sati idan ana iya amfani da shi idan irin wannan buqatar tashi.
Shigarwa, saiti da amfani da Nodejscan Scanner- Mai amfani ya shigar da postgres kuma saita shi (Sqlalchemy_database_url) a cikin core / saiti.py
- Bayan haka, yana saukar da kunshin Nodejscan daga wurin ajiyar Github ta hanyar kunna wannan hanyar.
![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_2](/userfiles/21/4370_2.webp)
Bayan haka kuna buƙatar zuwa directory directorscan kuma shigar da duk abubuwan da ake buƙata ta amfani da umarnin:
Pip3 Cire-Cututtukan -RStS.txt
![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_3](/userfiles/21/4370_3.webp)
- Dole ne ku aiwatar da wannan umarni (Python3 Migrate.Py) sau ɗaya don ƙirƙirar shigarwar da suka dace a cikin bayanan.
- Ana yin umarni "Python3 App.py ne domin gwada matsakaiciyar.
- Sanya bindiga da ake buƙata don aikin Nodejscan, zaku iya amfani da "Gunicorn --b..0.0.0.0.0.0.0.0.0.0.0. Ana buƙatar ta don yanayin samarwa.
![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_4](/userfiles/21/4370_4.webp)
Wannan kayan aiki zai gudanar da Nodejscan a: http: //0.0.0: 9090. Idan kana buƙatar gyara, shigar da Debug zuwa "gaskiya" a Core / Saiti. Tare da sabunta kayan aikin na zamani, Nodejscan yana da mafi ƙarancin ƙa'idodi na ƙarya.
![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_5](/userfiles/21/4370_5.webp)
Alamar layin ke dubawa ko "CLI" tana ba da damar wannan kayan aiki don haɗa tare da karkatarwa Ci / CD. Za a gabatar da sakamakon ga mai amfani a tsarin JONS.
![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_6](/userfiles/21/4370_6.webp)
Za'a iya saita hotunan Docker don Nodejscan ta amfani da matakan masu zuwa:
- Da farko, kuna buƙatar tabbatar da cewa an shigar da Docker da kanta a cikin tsarin.
- Mai amfani ya ƙaddamar da sabis ɗin Docker ta amfani da umarnin:
Kogin Service ya fara.
- Bayan haka, yana aiwatar da wannan umarnin:
Docker Gina -t Nodejscan
- Bayan haka, a ƙarshe, yana shiga wannan umarni don gudanar da aikace-aikacen:
Docker Run -it -P 9090: 9090 Nodejstan
Nuni na gaba daya tsari akan misali mai amfani- Mai amfani ya gwada wannan kayan aiki akan wurin ajiya da ke ɗauke da cikakkiyar lambar da ba ta cika ba.
- Aikace-aikacen Nodejscan ya dace da fayil ɗin .zip da aka ɗora a ciki. Don haka, da farko kuna buƙatar damfara ta .zip Archive, sannan buɗe mai binciken kuma sauke fayil ɗin.
- Bayan saukar da fayil ɗin zip, kayan aiki zai nuna mai amfani jerin duk raunin.
![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_7](/userfiles/21/4370_7.webp)
![Mataki-mataki-mataki na kafa don kafa da amfani da Nodejscan don sast 4370_8](/userfiles/21/4370_8.webp)
Marubucin labarin da aka fassara: Surharinsu Shekhar.
Abun ban sha'awa abu akan cisclub.ru. Biyan kuɗi zuwa Amurka: Facebook | VK | Twitter | Instagram | Tabal | Zen | Manzo | ICQ NEW | YouTube | Bugun jini.