Server 1
Reverse proxy & Load balancing serverServer 2
Web server for productionServer 3
Web server for stagingServer 4
Primary DB server for production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Coordinate { | |
contacts: { [key: string]: Contact }; | |
} | |
export interface Contact { | |
birthday?: Date; | |
emails: string[]; | |
firstName: string; | |
highScore: number; | |
lastName?: string; |
#JavaScript開発環境
##RequireJS
概要
モジュール管理ライブラリ導入メリット
複数JSファイルの依存関係を管理しやすくなる関連サイト
- 公式サイト - http://requirejs.org/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window) { | |
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6. | |
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling. | |
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction). | |
// This code is free to use by anyone (MIT, blabla). | |
// Author: [email protected] | |
var timeouts = {}; | |
var intervals = {}; |