Docker + node

server.js const express = require('express') const app = express() app.get('/', (req, res) => { res.send({ message: 'Hello World' }) }) app.get('/products', (req, res) => { res.send([ { id: 1, name: 'product 1', description: 'product 1', price: 100 }, { id: 2, name: 'product 2', description: 'product 2', price: 200 }, { id: 3, name: 'product … Continue reading Docker + node

Linux – Networking commands

hostname : display hostname hotname -i : display IP address ping: to check connection with server. host: displays IP address of given domain name & vice versa. ifconfig: to see network setting and IP address ip a: get IP address Firewall:sudo ufw enable : to enable firewallsudo ufw status : to check status of firewallsudo … Continue reading Linux – Networking commands