Route handler for POST request to add JSON item => solution without database
node
Route handler for POST request to add JSON item => solution without database
node
If Postman do not start after system reinstall, do this:
Extract Postman from postman-linux-x64.tar.gz to Downloads.
touch /home/user/.local/share/applications/Postman.desktop
////////////////////////
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=/home/user/Downloads/Postman/app/Postman %U
Icon=/home/user/Downloads/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
////////////////////////
Start Postman, skip creating account and go to File => Settings => Themes => select dark theme.
Ctrl++, Ctrl+- to increase user interface font size.
https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux
https://www.postman.com/downloads/?utm_source=postman-home
https://www.postman.com/
sudo lsof -i -P -n | grep LISTEN // list open ports
sudo netstat -tulpn | grep LISTEN
sudo ss -tulpn | grep LISTEN
sudo lsof -i:22 // see a specific port such as 22 with PID USER FD TYPE DEVICE NODE NAME
sudo nmap -sTU -O IP-address-Here
https://www.cyberciti.biz/faq/unix-linux-check-if-port-is-in-use-command/
sudo kill `sudo lsof -t -i:3000` // kill process on port 3000
https://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu
cat /etc/hosts
http://localhost:3001/ === http://127.0.0.1:3001/
run react and node servers in parallel on UNIX => & as separator in react-app/package.json
npm init -y // if install new empty project
npm i dotenv // in existing project
npm i express // in existing project
sudo npm i nodemon -g // automatically restarts node server after change
npm list -g // global install === -g
/usr/local/lib
├── eslint@8.22.0
├── live-server@1.2.2
├── node-sass@7.0.1
├── nodemon@2.0.20
└── npm-run-all@4.1.5
https://stackoverflow.com/questions/30950032/how-can-i-run-multiple-npm-scripts-in-parallel
https://towardsdev.com/how-to-set-up-a-node-js-express-server-for-react-c19104568d12
https://www.freecodecamp.org/news/how-to-create-a-react-app-with-a-node-backend-the-complete-guide/
https://www.geeksforgeeks.org/how-to-connect-node-js-with-react-js/
git rm -r --cached .
git add .
git commit -m "untrack files contained in the .gitignore file"
git reset HEAD . // cancel all commits
git reset --hard
git clean -n
git clean -d -n
https://linuxize.com/post/how-to-remove-untracked-files-in-git/
// search-box.jsx
// is same as above but worse in terms of code
// App.js
//
You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.
// change to defaultValue=''