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
Tag: Linux
Linux – games of kids
/https://www.gcompris.net/index-en.html 'https://software.opensuse.org//download.html?project=home%3Aimiolek-i&package=eduactiv8#directRaspbian 'https://tux4ubuntu.org/tux-games/
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
Linux – Managing Users & Groups
Add new user: useradd Delete user: userdel Modify user: usermod Switch user: su Add user to group: groupadd Delete user from group : groupdel Add new user Commands : useradd, adduser step 1) create user with new home directory useradd -m -u 111 -c "this is comment" -s /bin/bash tomuseradd -m -s /bin/bash jerry -m … Continue reading Linux – Managing Users & Groups
Linux – Basic commands
UNIX : Unix is a family of Operating Systems (OS). It is made up of three parts; kernel, shell and programs. There are different versions of UNIX. Most popular flavor is LINUX. As Linux is is Unix-like system, we can use Unix commands to control it. Linux is designed by Linus Torvalds in 1990's and … Continue reading Linux – Basic commands