Build A Simple Web App with Node and Postgres

Build A Simple Web App with Node and Postgres

A tutorial to build a simple web application with Node.js and PostgreSQL.

Heikki Julkunen

This looks very interesting!
For a total node newbie I’m not sure how to start the app (node index.js gives errors), you don’t by chance have a zip to download in the very likely event I made some errors.
Thanks

Matt Raible

Hello Heikki,

You can find the completed example on GitHub. You should be able to clone it or download it as a zip.

Heikki Julkunen

Thanks! Turns out index.js was missing some code (compared to walkthrough).
However, I now get the error below.
Also, the config/config.js repo comes with “sharp” values, you probably don’t want that…
However where do I find my OKTA_API_TOKEN mentioned in the config.js ?

node:30574) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
SyntaxError: Unexpected token (3:23)
at Parser.pp$4.raise (/home/heikki/okta-node-postgres-todo-example/node_modules/acorn-globals/node_modules/acorn/dist/acorn.js:2488:13)