Tag: nodejs

firefox ebKNbQhG6D - How to Properly Uninstall NodeJS & NVM from CentOS

How to Properly Uninstall NodeJS & NVM from CentOS

yum remove nodejs rm -rf ~/.nvm ~/.npm ~/.bower /usr/local/bin/npm /usr/local/bin/node* /usr/local/include/node* /usr/local/lib/node* /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node...

nginx nodejs configuration - Nginx Configuration file example for NodeJS App

Nginx Configuration file example for NodeJS App

Nginx Configuration file example for NodeJS App: server { listen 80; server_name domain.com; # redirect everything to https return 301 ; } server { listen 443 ssl; ssl on; ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;...

nodejs - How to deploy a 📦 Node.js application in cPanel ?

How to deploy a 📦 Node.js application in cPanel ?

Node.js is an open-source back-end runtime environment that executes JavaScript code outside a web browser. Follow these simple steps to deploy your node.js app using cPanel Register Node.js application in cPanel First login to your cPanel and under...

nodejs - Install NODE.JS on CentOS

Install NODE.JS on CentOS

To install Node.js on CentOS perform (as root):

curl -sL | bash -
yum install -y nodejs

It will output each step as it moves along, prompting you to manually install any 3rd party dependencies.

Verify the install with:

node -v

nodejs - node-orm2 — Node.js Object Relational Mapping 🧭

node-orm2 — Node.js Object Relational Mapping 🧭

ORM Package for Node.js. Works with MySQL, PostgreSQL and SQLite. var orm = require('orm'); orm.connect("mysql://username:password@host/database", function (err, db) { if (err) throw err; var Person = db.define('person', { name : String, surname :...