This project demonstrates how to connect to a PostgreSQL database using Node.js. It establishes a connection to a local PostgreSQL server and queries data from a specified table.
Before you begin, ensure you have met the following requirements:
- Node.js: Make sure you have Node.js installed on your machine. You can download it from nodejs.org.
- PostgreSQL: You need to have PostgreSQL installed and running. You can download it from postgresql.org.
- Database Setup: Ensure that you have a database named
firstdb
and a table namedfirstTable
created in your PostgreSQL server.
Clone the repository:
git clone https://github.com/louwis-alfred/myNode.git
cd myNode