Please enable JavaScript.
Coggle requires JavaScript to display documents.
Node and Express (Hello World for node (HTTP methods (CRUD) (POST, GET,PUT…
Node and Express
Hello World for node
npm init - create package.json
npm install express
maybe add a .gitignore for node_modules
make a server.js
run it with 'node server.js'
REST api design
HTTP methods (CRUD)
POST, GET,PUT,DELETE
Lesson 2
make back end folder.
npm init
Package manager is called npm
packages are stored in node_modules
naves and versions of pakcages installed are saved in package.json
Express
A library for Node.js to make it easy to build web application
works with apis
Uses Event processing
Synchronous or asynchronous
Node Js is a Javascript runtime - means you can run java code on a laptop or server.
Has a built-in HTTP library that can be used to create a web server