In this tutorial, I will show you how to create a Node Server and the basic queries with PostgreSQL.

  • NodeJS installed
  • PostgreSQL installed
  • Basic JavaScript
  • Terminal
  • Text Editor
  • Postman

To start it is necessary to first create a new folder called as you want, for this tutorial I am going to call it node-postgres, and then inside the folder open a new terminal with the folder path and initialize our project, for this, just write the following command in the terminal.

npm init -t

This will create a file called package.json with default values, for our project which contains all…

Abraham Murillo

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store