Exam 4 (Mod 9-11) Flashcards
What are the 5 key node folders (express framework)?
bin, public, views, node_modules, and routes
What folder in the express framework is responsible for the startup (contains core software)?
app.js
Which node folder holds the www file containing the startup script for the webserver?
bin
Which node folder contains all front-end content?
Public -> holds front-end js librarys, css files, static files, favicon.ico,
Which node folder does the require() function look for libraries?
node_modules
Where are node pug files kept within the node folder structure?
views
What are 6 common node packages for geospatial (list and describe their purpose)
1) Proj -> provides coordinate system transformations
2) Leaflet -> Js web mapping client
3) OpenLayers -> Js web mapping client
4) Pg -> connect and SQL w/ postgresSQL
5) Proj4leaflet -> to reproject for leaflet
6) Express-session -> back-end framework
What is NodeJs and what are its 7 components and their role?
NodeJs is an open-source, cross platform JavaScript runtime environment.
Below is a list of its 7 components:
1) crypto -> encryption
2) DNS -> domain name system
3) Event Loop -> for non-blocking IO
4) node bindings -> http, socket, file system
5) node Standard lib -> ~ 35 Js files
6) thread pool -> where all the long-running operations are performed in the background
7) V8 Engine -> interprets the JS
What are the 6 components of node express?
1) node
2) express
3) router
4) Pug What is it?
5) method
6) npm What is it?
What are the main characteristics of Pug?
- shorthand HTML with no closing tags (mix of Js & HTML)
- variables that usually contain JSON from server
- indentation sensitive
What are the 9 key files in a node Javascript App?
app.js
user.js
index.js
gist7132.js
error.pug
index.pug
layout.pug
styles.css
gist7132.css
Name 7 current webstorm projects.
Angualar
Bootstrap
Dart
Empty
HTML5 BP
Node Express
Phonegap
What are the 12 possible geometry types?
CIRCULARSTRING
CURVEPOLYGON
GEOMETRYCOLLECTION
LINESTRING
MULTILINESTRING
MULTIPOINT
MULTIPOLYGON
POINT
POLYGON
POLYHEDRAL SURFACE
TIN
TRIANGLE
What are 8 spatial file formats?
What are 12 Google chart style options?
Area
Bar
Bubble
Candlestick
Column
Donut
Gantt
Geo
Map
Pie
Table
Trendlines
What are 8 characters that might be used when parsing?
Braces
Brackets
Comma
Equal
Parentheses
Semicolon
Space
Colon
List 10 functions related to JSON.
row_to_json
array_to_json
to_json
json_array_length
json_each
json_object_keys
json_agg
st_geomfromgeojson
st_asgeojson
st_astopojson