By the end of this lesson, you should be able to...
- Explain what an HTTP server is
- Explain why an HTTP server is useful
- Explain what an HTTP request is
- Explain what an HTTP response is
- Create a Node.js HTTP server with the
httpmodule
| import React from 'react'; | |
| import { Input, Select, Option, Label } from '../assets/styled-components/forms.js'; | |
| class Address extends React.Component { | |
| render() { | |
| return ( | |
| <section> | |
| <h3>Address Component</h3> | |
| <Label fullwidth >Street 1: | |
| <Input type="text" fullwidth /> |
We are describing some scenarios that involve tapping into the component lifecycle:
render method. For performance reasons, you only want to render when the search field has changed.| [ | |
| [ | |
| "usdaplants_table", | |
| "characteristics_20160713_table", | |
| "usda_plants_20160713_table" | |
| ], [ | |
| "id", | |
| "betydb.species.id", | |
| "Genus", | |
| "Species", |
| (function() { | |
| 'use strict'; | |
| const server = 'https://galvanize-todos.herokuapp.com/is-persons'; | |
| const app = angular.module('todoApp'); | |
| app.controller('PeopleCtrl', PeopleCtrl); | |
| app.controller('PersonCtrl', PersonCtrl); | |
| app.controller('TodoListCtrl', TodoListCtrl); |
| WARN engine [email protected]: wanted: {"node":"^0.10.3 || ^0.12.0"} (current: {"node":"4.2.6","npm":"2.14.12"}) | |
| - | |
| > [email protected] install /Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli/node_modules/usb | |
| > node-pre-gyp install --fallback-to-build | |
| [usb] Success: "/Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node" is installed via remote | |
| /Users/Jadam/.nvm/versions/node/v4.2.6/bin/t2 -> /Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli/bin/tessel-2.js | |
| > [email protected] postinstall /Users/Jadam/.nvm/versions/node/v4.2.6/lib/node_modules/t2-cli | |
| > t2 install-drivers || true |
| 1. \dt | |
| 2. \du | |
| 3. SELECT * FROM owners; | |
| 4. SELECT name FROM owners; | |
| 5. SELECT age FROM owners ORDER BY age ASC; | |
| 6. SELECT * FROM owners WHERE name = 'Donald'; | |
| 7. SELECT * FROM owners WHERE age > 30; | |
| 8. SELECT * FROM owners WHERE name LIKE 'E%'; | |
| 9. INSERT INTO owners (name, age) VALUES ('John',33); | |
| 10. INSERT INTO owners (name, age) VALUES ('Jane',43); |