Skip to content

Commit

Permalink
Generate ebook pake Gitbook
Browse files Browse the repository at this point in the history
  • Loading branch information
junwatu committed Nov 13, 2015
1 parent d54b096 commit 18149b7
Show file tree
Hide file tree
Showing 79 changed files with 67,665 additions and 178 deletions.
896 changes: 896 additions & 0 deletions asinkron_io_&_event/index.html

Large diffs are not rendered by default.

909 changes: 909 additions & 0 deletions asinkron_io_&_event/javascript_&_nodejs.html

Large diffs are not rendered by default.

911 changes: 911 additions & 0 deletions asinkron_io_&_event/php_&_server_http_apache.html

Large diffs are not rendered by default.

Binary file added cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cover/cover.xcf
Binary file not shown.
Binary file added cover_small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
898 changes: 898 additions & 0 deletions database/enkripsi.html

Large diffs are not rendered by default.

896 changes: 896 additions & 0 deletions database/index.html

Large diffs are not rendered by default.

945 changes: 945 additions & 0 deletions database/mongodb.html

Large diffs are not rendered by default.

897 changes: 897 additions & 0 deletions database/mongoose.html

Large diffs are not rendered by default.

896 changes: 896 additions & 0 deletions database/mysql.html

Large diffs are not rendered by default.

989 changes: 989 additions & 0 deletions database/node-sqlite3.html

Large diffs are not rendered by default.

1,082 changes: 1,082 additions & 0 deletions database/node_mongodb.html

Large diffs are not rendered by default.

988 changes: 988 additions & 0 deletions database/node_mysql.html

Large diffs are not rendered by default.

924 changes: 924 additions & 0 deletions database/sqlchiper.html

Large diffs are not rendered by default.

910 changes: 910 additions & 0 deletions database/sqlite.html

Large diffs are not rendered by default.

934 changes: 934 additions & 0 deletions es6/memakai_es6.html

Large diffs are not rendered by default.

904 changes: 904 additions & 0 deletions expressjs/akses_server.html

Large diffs are not rendered by default.

897 changes: 897 additions & 0 deletions expressjs/index.html

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions expressjs/kode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Kode


Jika anda ingat server file yang memakai modul http pada bab sebelumnya berikut merupakan versi yang memakai ExpressJS

> app.js
'use strict';

var express = require('express');
var server = express();
var logger = require('morgan');

server.use(logger('dev'));

server.use(express.static(__dirname+'/publik'));

server.listen(4000, function(){
console.log('Server file sudah berjalan bos!');
});

Seperti yang dijelaskan pada bab sebelumnya untuk memakai module Node.js di gunakan keyword `require`.

Modul `express` akan menangani tiap request dari user dan kemudian akan memberikan response berupa file yang diinginkan. Pada kode diatas file yang akan diberikan ke pengguna disimpan pada folder `publik`.




Loading

0 comments on commit 18149b7

Please sign in to comment.