NodeJS: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 47: Line 47:
== References ==
== References ==
* [https://scotch.io/tutorials/getting-started-with-node-express-and-postgres-using-sequelize Getting Started with Node, Express and Sequelize]
* [https://scotch.io/tutorials/getting-started-with-node-express-and-postgres-using-sequelize Getting Started with Node, Express and Sequelize]
* [https://techcraft.co/videos/2022/2/vscode-on-ipad-pro-full-setup-guide-with-raspberry-pi/ VSCode on iPad Pro With Raspberry Pi]
* [https://github.com/nvm-sh/nvm Node Version Manager]
* [https://github.com/nvm-sh/nvm Node Version Manager]
* [[SSH Port Forwarding]]
* [[Fedora/Raspberry Pi]]
* [[Fedora/Raspberry Pi]]
* [[Fedora/GraalVM]]
* [[Fedora/GraalVM]]
* [[OpenVPN]]
* [[OpenVPN]]
* [[Fedora]]
* [[Fedora]]

Revision as of 04:49, 20 March 2022

NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
/usr/local/lib
├── [email protected]
└── [email protected]

If you wish to uninstall them at a later point (or re-install them under your nvm Nodes), you can remove them from the system Node as follows:

nvm use system
npm uninstall -g a_module
sudo npm uninstall -g nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install 14 && node -v
nvm use system && node -v
nvm use 14

Code Server

nvm use 14
npm install -g yarn
yarn global add code-server
~/.yarn/bin/code-server
vim ~/.config/code-server/config.yaml
bind-addr: 0.0.0.0:8080
auth: node
password: academia
cert: false

Firewall

uncomplicated firewall(ufw):
systemctl status ufw
ufw status verbose
ufw disable
ufw enable
ufw status

References