Profesyonel İnternet Bağımlısı • Oyun Tutkunu • Teknoloji Yaratıcısı
Profesyonel İnternet Bağımlısı • Oyun Tutkunu • Teknoloji Yaratıcısı

Eclipse'de bir node.js uygulamasını harici bir uygulama olarak nasıl çalıştırabilirim?

İşte herhangi bir harici eklenti yüklemeden Eclipse IDE içerisinde Node.JS uygulamalarını nasıl başlatacağınıza dair hızlı bir kılavuz!
Bu sayfa, kolaylık sağlamak amacıyla son derece istekli yapay zeka stajyerlerim tarafından İngilizceden çevrilmiştir. Hâlâ öğrenme aşamasında oldukları için birkaç hata gözden kaçmış olabilir. En doğru bilgi için lütfen İngilizce versiyona bakın.
Ev Blog Eclipse'de bir node.js uygulamasını harici bir uygulama olarak nasıl çalıştırabilirim?

Lütfen bu blog yazısının Temmuz 2012'de yayınlandığını, dolayısıyla ne zaman okuduğunuza bağlı olarak bazı bölümlerinin güncelliğini yitirebileceğini unutmayın. Ne yazık ki, bilgilerin doğru kalmasını sağlamak için bu yazıları her zaman tam olarak güncel tutamıyorum.

    If you like using Eclipse as your preferred IDE for your coding, there is an easy way to use the built in External tools feature in Eclipse to launch Node.js applications, without having to install any external plugins.
    Here is a short guide how.

    The Hello World JavaScript project

    Here is a simple overview of a typical Hello World application in JavaScript that prints out the phrase "Hello World" to the console.log.
    Screenshot of a JavaScript file in Eclipse

    Creating the External tool launcher

    To launch this, we need to create a custom External tool launch configuration. Start by opening up your External tool configurations.
    This can by done by going "Run" - "External Tools" - "External Tools Configurations...", or by clicking on the External tools shortcut in the toolbar:
    External tool configuration
    Select "Program" and then click on the "New launch configuration" button:
    New launch configuration
    Once the configuration window opens, do the following:
      static.specialagentsqueaky.com example "node.js - Hello World".
    1. "Location" should point towards node.js launch command, for Window-users this can point directly to node.exe.
    2. "Working Directory" should points towards your project. This can be done by clicking on the "Browse Workspace..." button.
    3. Enter the name of the JavaScript file you want node.js to execute. In my case it is "main.js".
    4. Apply and close the window.
    Settings

    Running your application

    Your launch configuration is now ready to be called from the "External tool" button:
    Launching the app
    Running it will use the console view in Eclipse for the output:
    Console

    Special Agent Squeaky tarafından yazıldı. İlk yayınlanma tarihi 29 Temmuz 2012. Son güncelleme tarihi 29 Temmuz 2012.

    📺 Squeaky'nin en yeni videosunu izle!

    Canlı yayınınıza basit gerçek zamanlı altyazılar nasıl eklenir?