This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
- Introduction
- Installing Node.js
- Installing MySQL
- Setting-up the project
| var mongoose = require('mongoose'); | |
| mongoose.connect('mongodb://localhost/test'); | |
| var db = mongoose.connection; | |
| db.on('error', function() { | |
| return console.error.bind(console, 'connection error: '); | |
| }); | |
| <div class="row"> | |
| <div class="col-md-2 col-sm-2 col-xs-2"> | |
| <p><button class="btn btn-primary btn-sm" id="map-address-btn"><span>Find It</span></button></p> | |
| </div><!-- .col --> | |
| <div class="col-md-10 col-sm-10 col-xs-10"> | |
| <div class="panel panel-default"> | |
| <div class="panel-heading">Location Response</div> | |
| <div class="panel-body"> | |
| <p>Enter Address: <input id="location-address" type="text" class="form-control" placeholder="Street, City, State"/</p> | |
| <p>Map:</p><div id="map-canvas" style="height: 400px;"></div> |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
| upstream upstream-apache2 { | |
| server 127.0.0.1:8080; | |
| } | |
| upstream upstream-nodejs { | |
| server 127.0.0.1:3000; | |
| } | |
| server { | |
| listen 80; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>My Iframe</title> | |
| </head> | |
| <body> | |
| <button>Botão</button> | |
| <script type="text/javascript"> |
| var Sudoku = ( function (){ | |
| var _rows, _cols, _grid; | |
| // initialize the module with input data | |
| init = function(data){ | |
| _reorganizeData(data); | |
| return this; | |
| }; | |
| r |
| <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-152.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/apple-touch-icon-120.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/apple-touch-icon-76.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="60x60" href="/apple-touch-icon-60.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="57x57" href="/apple-touch-icon-57.png"> | |
| <link rel="apple-touch-startup-image" href="/apple_startup_image.png"> | |
| <link rel="icon" type="image/png" href="/favicon-16.png" sizes="16x16"> |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # Use one of the download links here: http://phantomjs.org/download.html | |
| # In this case, it's the 32-bit version. | |
| sudo yum install freetype fontconfig | |
| cd ~ | |
| wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2 | |
| bunzip2 phantomjs*.tar.bz2 | |
| tar xvf phantomjs*.tar | |
| sudo cp phantomjs*/bin/phantomjs /usr/bin/phantomjs | |
| phantomjs -v |