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
| { | |
| "next": "", | |
| "duration": "46ms", | |
| "results": [{ | |
| "created_at": "2017-06-28T16:38:58.806970", | |
| "updated_at": "2017-06-28T16:38:58.806970", | |
| "activities": [{ | |
| "actor": "ian", | |
| "foreign_id": "5", | |
| "target": null, |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
| # the IP(s) on which your node server is running. I chose port 3000. | |
| upstream app_geoforce { | |
| server 127.0.0.1:3000; | |
| } | |
| upstream app_pcodes{ | |
| server 127.0.0.1:3001; | |
| } |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |
| // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); |
| haiku = -> | |
| adjs = [ | |
| "autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
| "summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
| "patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
| "billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
| "long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
| "red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
| "wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
| "fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", |
| haiku = -> | |
| adjs = [ | |
| "autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
| "summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
| "patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
| "billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
| "long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
| "red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
| "wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
| "fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", |
| -- Tested on 1.7.2. | |
| -- Run the below MySQL query in your phpmyadmin | |
| -- It has deleted my all test orders and also reset my dashboard. | |
| ---------------------------------------------------------------------------------------------- | |
| SET FOREIGN_KEY_CHECKS=0; | |
| TRUNCATE `catalogsearch_query`; |
https://devcenter.heroku.com/articles/csr
openssl genrsa -des3 -out server.orig.key 2048
openssl rsa -in server.orig.key -out server.key