<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://medjava.ro/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://medjava.ro/feed.php">
        <title>Med Java - java-script:node-js</title>
        <description></description>
        <link>https://medjava.ro/</link>
        <image rdf:resource="https://medjava.ro/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-26T14:10:20+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=java-script:node-js:auto-reload-files-no-restart-needed&amp;rev=1735842138&amp;do=diff"/>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=java-script:node-js:express-js&amp;rev=1735842138&amp;do=diff"/>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=java-script:node-js:rest-api&amp;rev=1735842138&amp;do=diff"/>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=java-script:node-js:setup&amp;rev=1735842138&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://medjava.ro/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Med Java</title>
        <link>https://medjava.ro/</link>
        <url>https://medjava.ro/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://medjava.ro/doku.php?id=java-script:node-js:auto-reload-files-no-restart-needed&amp;rev=1735842138&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-01-02T18:22:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>auto-reload-files-no-restart-needed</title>
        <link>https://medjava.ro/doku.php?id=java-script:node-js:auto-reload-files-no-restart-needed&amp;rev=1735842138&amp;do=diff</link>
        <description>Automatic reload node.js files

We&#039;ll use nodemon for this.


Install

To automatic load the files, without a restart being needed, we should install:


npm install --save-dev nodemon


The --save-dev flag saves nodemon as a development dependency, meaning it won&#039;t be installed in production environments.</description>
    </item>
    <item rdf:about="https://medjava.ro/doku.php?id=java-script:node-js:express-js&amp;rev=1735842138&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-01-02T18:22:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>express-js</title>
        <link>https://medjava.ro/doku.php?id=java-script:node-js:express-js&amp;rev=1735842138&amp;do=diff</link>
        <description>Node.js use Express.js

About

Express.js, or simply Express, is a web application framework for Node.js. It was designed for building web applications and APIs. Express is known for its simplicity, flexibility, and performance. It is part of the MEAN (MongoDB, Express.js, AngularJS, Node.js) and MERN (MongoDB, Express.js, React, Node.js) stacks, which are popular technology stacks for building modern full-stack web applications.</description>
    </item>
    <item rdf:about="https://medjava.ro/doku.php?id=java-script:node-js:rest-api&amp;rev=1735842138&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-01-02T18:22:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>rest-api</title>
        <link>https://medjava.ro/doku.php?id=java-script:node-js:rest-api&amp;rev=1735842138&amp;do=diff</link>
        <description>Simple REST Api backend implementation using Node.js and Express.js

Project implementation

First, setup node.js for a new project. 

Then, install Express.js:


npm install express


Create a src folder, inside it we&#039;ll place the following files.

Simple Hello World rest service


import express from &quot;express&quot;;

let port = 3000;

let app = express();

//define endpoints

app.get(&#039;/hello&#039;, (request, response) =&gt; {
    response.send(&quot;Hello World!&quot;);
})

app.listen(port, () =&gt; {
    console.log(`…</description>
    </item>
    <item rdf:about="https://medjava.ro/doku.php?id=java-script:node-js:setup&amp;rev=1735842138&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-01-02T18:22:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>setup</title>
        <link>https://medjava.ro/doku.php?id=java-script:node-js:setup&amp;rev=1735842138&amp;do=diff</link>
        <description>Setup node.js for a new project




npm -v
v16.15.1

npm -v
8.11.0


Inside your project root directory run:


npm init es6


You will be asked to enter several attributes for your project.

If you want the default values just enter:


npm init es6 -y</description>
    </item>
</rdf:RDF>
