DevTech101

DevTech101

nodejs

Web GUI/UI – Administrating A Kubernetes Cluster Created With Angular

Web GUI – Administrating A Kubernetes Cluster I am working on a Web GUI to Administrate a Kubernetes Cluster. this includes all manipulation i.e. stats lookups, add, modify, deletes. all manipulations are using the official Kubernetes API’s. Details as well as the full code is available on my Github repository. In the next few weeks …

Web GUI/UI – Administrating A Kubernetes Cluster Created With Angular Read More »

Solaris NodeJS zone install and configuration

Solaris NodeJS zone install and configuration First, lets Compile NodJS from source, get the source from the NodeJS website. Something like the below should work to compile. env CC=gcc ./configure –prefix=/opt/node-v6.2.2 # for 8 cpu’s gmake -j 8 gmake install Next, lets modify the zone properties and distribute the compiled bundle to all the Solaris …

Solaris NodeJS zone install and configuration Read More »

NodeJS and mongoose

npm install mongoose app.js var express = require(‘express’); var os = require(‘os’); // Mongoose import var mongoose = require(‘mongoose’); // Mongoose connection to MongoDB (ted/ted is readonly) mongoose.connect(‘mongodb://127.0.0.1/users’, function (error) { if (error) { console.log(error); } }); // Mongoose Schema definition var Schema = mongoose.Schema; var UserSchema = new Schema({ hostname: String, loadavrg: String, totalmem: …

NodeJS and mongoose Read More »

Node JS and express

Bootstrap + nodejs http://lresende.blogspot.com/2015/01/nodejs-building-html-site-template.html Express using EJS (not jade the default) express –ejs node_app2 In the Views > headers.ejs In the index.ejs Hello, world! This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point …

Node JS and express Read More »

Nodejs Bootstrap and Express project

Configuring NodeJS, Express, and Bootstrap npm install –save express-partials Initialize /install NodeJS express Module npm install -g express-generator Create all need structure with express express –ejs bootstrap/ Finally, install NodeJS modules npm install Next, start NodeJS npm start Note: If you are using Netbeans, to be able to start from within Netbeans, add the below …

Nodejs Bootstrap and Express project Read More »

Setting Node JS / NPM Proxy

To make node js or npm work behind a firewall Get node compiled for Solaris from http://www.petertribble.co.uk/Solaris/node.html Note: after pkgadd, move Node to node. also modify this file /opt/node/lib/node_modules/npm/bin/npm-cli.js Disable strict ssl use npm config set strict-ssl false Set the regstry to non https npm config set registry http://registry.npmjs.org/ Verfy with npm config list Then …

Setting Node JS / NPM Proxy Read More »

How to configure mediawiki and VisualEditor with Parsoid

Configuring MediaWiki to use NodeJS and Parsoid Note: This post references an old version of NodeJS. You can install the latest version of NodeJS and self compile it. to do so, for full details just follow this post. First you need to download NodesJS, download from http://nodejs.org/dist/v0.10.20/node-v0.10.20-sunos-x64.tar.gz Extract to /opt/node and add node to the …

How to configure mediawiki and VisualEditor with Parsoid Read More »