Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
Angular CLI version | Angular version | Node.js version | TypeScript version | RxJS version | |
---|---|---|---|---|---|
1.0.0-beta.17 (package name: angular-cli) | 2.0.x | 6.9.x or later minor version | 2.0.x | 5.0.x or later minor version | |
1.0.0-beta.20-1 (package name: angular-cli) | 2.1.x | 6.9.x or later minor version | 2.0.x | 5.0.x or later minor version | |
1.0.0-beta.22-1 (package name: angular-cli) | 2.2.x | 6.9.x or later minor version | 2.0.x | 5.0.x or later minor version | |
1.0.0-beta.30 | 2.3.x | 6.9.x or later minor version | 2.0.x | 5.0.x or later minor version | |
1.0.0-rc.4 | 2.4.x | 6.9.x or later minor version | 2.0.x | 5.0.x or later minor version | |
1.0.6 | 4.0.x/4.1.x | 6.9.x or later minor version | 2.2.x | 5.0.x or later minor version | |
1.1.3 | 4.0.x/4.1.x | 6.9.x or later minor version | 2.3.x | 5.0.x or later minor version | |
1.2.7 | 4.0.x/4.1.x | 6.9.x or later minor version | 2.3.x | 5.0.x or later minor version | |
1.3.2 | 4.2.x/4.3.x/4.4.x | 6.9.x or later minor version | 2.4.x | 5.0.x or later minor version |
#!/usr/bin/env node | |
"use strict"; | |
console.log("This is pid " + process.pid); | |
setTimeout(function () { | |
process.on("exit", function () { | |
require("child_process").spawn(process.argv.shift(), process.argv, { | |
cwd: process.cwd(), |
This is an example of using module tls
in NodeJS to create a client securely connecting to a TLS server.
It is a modified version from documentation about TLS, in which:
var socket = null; | |
function bootstrap() { | |
// 適当な図形を描画 | |
var c = document.getElementById('mycanvas'); | |
var ctx = c.getContext('2d'); | |
ctx.globalalpha = 0.3; | |
for(var i=0; i<1000; i++) { | |
ctx.beginPath(); |
Sublime Text includes a command line tool, subl
, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.
Applications
folderSetup
var express = require('express'); | |
var cookieParser = require('cookie-parser'); | |
var session = require('express-session'); | |
var flash = require('express-flash'); | |
var handlebars = require('express-handlebars') | |
var app = express(); | |
var sessionStore = new session.MemoryStore; | |
// View Engines |