INTERTEXTrEVOLUTION

Make.Hack.Play.Learn

← Post archive

Intro to Node Notes

https://glitch.com/edit/#!/intro-to-node?path=README.md:1:0

"name": "IndieWeb GuestBook",
  "author": "Greg McVerry",
  "version": "0.0.1",
  "description": "IndieWeb Guestbook",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
This is JSON, or JavaScript Object Notation. We are telling the Node runtime that there is a file server.js that contains the server-side JavaScript, which handles what to do when someone enters our app URL into their browser.
In this app, and many Node apps on Glitch, we have a dependency of Express, which is a framework that allows us to write less code to do more things for Node.

I don't like word dependency.Looking for simple wasy to bit a bit of data into HTML. Don't even really need to worry abotu storage. Adding links to a bunch of stuff I don't understand is opposite of my goals, still looks easy and a play with javascript.

n this app, we have a new resolutions.json file which is JSON (like our package.json) containing info about resolutions. We can send this to our client-side JavaScript by adding another GET request. This is called an endpoint, because you're creating a URL that you may or may not allow anyone to access to get some kind of info.

Definition of endpoint

By Greg McVerry · Permalink · Original Known URL