Node Js Nedir?

Temmuz 12, 2017

Node.js açık kaynaklı bir javascript kütüphanesidir. Sunucu tarafında kullanılan bu kütüphane Windows, Linux, Unix, Mac OS X, vb. platformlarda kullanılabilir. Google tarafından geliştirilen V8 engine üzerinde çalışır. V8 engine, javascript dilini makine diline çevirir bu sayede günümüze kadar client tarafında kullanılan javascript dilinin server tarafında da kullanımına olanak sağlar. Günümüzde Php, ASP.NET’in popülerliğini elinden almaya başlayan bu kütüphane web tarafında fazlasıyla ilgi çekmeye başlamıştır.

Node.js nedir


Node.js’i kimler Kullanıyor?

  • Netflix
  • New York Times
  • PayPal
  • Medium
  • LinkedIn
  • Uber
  • Hapi

Sunucu maliyetlerinde ciddi avantaj sağlayan Node.js daha az kaynak kullanımı ve daha fazla performans vadediyor. Peki nasıl kullanacağız bu kütüphaneyi.

Öncelikle buradan indirme sayfasına gidip işletim sisteminize göre seçim yapıp indirme işlemini tamamlanız gerekmekte.

Kurulum işlemini tamamladıktan sonra eğer linux dağıtımı olan bir işletim sisteminiz varsa terminal üzerinden

~$ node -v 

komutunu çalıştırıp version bilgisini alabilirsiniz.

Node.js Demo

Version bilgisine eriştiniz ise hemen bir js dosyası oluşturup klasik bir “Hello World” uygulaması yapabiliriz.

Terminal üzerinden devam edelim;

~$ touch test.js   // Bulunduğumuz dizine test.js isminde bir dosya oluşturduk.
~$ sudo nano test.js // test.js isimli dosyayı açtık.


const http = require('http');
const hostname = '';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);

Belirtilen js kodlarını dosyanın içerisine ekleyip kaydediyoruz.
~$ node test.js  // test.js dosyasını çalıştırıyoruz.
Terminal üzerinde; Server running at uyarısını görünce tarayıcımızdan ilgili linke gidiyoruz ve “Hello World” ibaresini görmüş oluyoruz.

Yukarıda belirtilen çalışmanın aynısını buradan bulabilirsiniz.

Not: Node.js hakkında sorularınız olursa yorum bırakabilirsiniz en kısa sürede geri dönüş yapılacaktır.

Bir yorum

  • Jesqwwwsewrets Ağustos 15, 2017, 6:24 pm

    I know that when you’re traveling, especially on a strong budget, you’re supposed to watch out your finances more carefully and not throw money around. However, when I’m in some sort of country . i see the familiar bright lights of an casino or the welcoming entrance of a card room I’m there. Sometimes just a peek inside will suffice, sometimes just just a little video poker, other times the comfortable, friendly confines hook me for longer, an excuse to stay out of the freezing. So here exactly what you can expect from your gambling experiences around entire world.

    The same is true for people that decide perform review casino online. Initial 30 days . sites have rules usually are favorable towards player a few are don’t. A good example is when someone new opens an account; a credit is given which is a bit more than the player actually revealed.

    There are times that even for people who have stayed for a variety of hours on a slot machine, nothing happens. But once you leave it, the next player gets lucky. This is where the belief that a slot machine will hit the jackpot after playing long consecutive hours.

    Anyone develop into an affiliate and the good thing regarding it may be the person does not have to devote any dollars. This is because the spela casinos gambling online site and he has done the majority of the work along with the only thing that needs to be done end up being promote it for more visitors. This partnership is a win-win situation for the two of you since this means that revenue will be coming in. Suitable casino online programs to select from. Before selecting one, it is best to check what the benefits are. Once it is selected then finding a good online casino site to partner with is step two. The person needs to be careful in order to invest. Examples of these online sites are not reputable and are just there to steal money from people.

    The Westin has various amenities exactly like all the opposite hotels involving Las Vegas area. The place has a and table discs. Slots are opened 24/7 and the table games start around 3 pour.m. and are open until the evening hours. Also, from Monday-Thursday from 5:30 till 8:00 p.m. the Westin offers free snacks and drinks for site visitors. The Westin has a swimming pool, but it is small might be very crowded with just a few guests. Right beside the slots and table games the hotel features a bar make sure you’re playing in the casino acquire free refreshments. The Westin also has a restaurant, Starbucks, wellness and a great gift shop located within your accommodation.

    If you receive time within your office, or while a little bit of work at home, it is simple to play many casinos with free slots just to chill out your mind off work and stress. There are also bonuses and rewards that you can make just by killing valuable time. It is not always very for you to go towards local casino club it really is extremely to be able to play online casino when you want. You can begin playing from as little as $1 so no worries about paying huge deposit either.

    I went right off to BlackJack, my best and favorite play. The game was just about like one other blackjack games I have played. I have done win, which would mean that is always a moreover. In returning to the lobby, the progressive jackpot is displayed and continuously updated. Slots tournaments also popup to alert the user of current tournaments, we thought was a very nice feature.

    Seeing that you know why to play slots through the internet tend to be closer in the past to actually getting began out. Soon enough you is turning your computer into an e-casino. Does it have any better than that?

Bir Cevap Yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir