Angular 8 + MongoDB example with Node.js Express: Build CRUD App

In this tutorial, I will show you how to make Angular 8 connect to MongoDB with Node.js Express. We’re gonna build a full-stack (MEAN stack) CRUD Application in which, the back-end server uses Node.js + Express for REST APIs, front-end side is an Angular App with HTTPClient.

Newer versions:
Using Angular 10
Using Angular 11
Using Angular 12
Using Angular 13
Using Angular 14
Using Angular 15
Using Angular 16

Related Posts:
MEAN stack Authentication & Authorization with Angular 8 example
Angular 8 upload file/image to Node.js Server example

Run both projects in one place:
How to Integrate Angular 8 with Node.js Restful Services

Read More

Export PostgreSQL data to CSV file using Node.js

Previous tutorial shows you how to use Node.js to import CSV data into a PostgreSQL Database table. Today we’re gonna do the opposite: Export PostgreSQL data to CSV file. There are 2 steps:

  • Read PostgreSQL data using pg module
  • Export PostgreSQL data to CSV file using one of three modules: fast-csv, csv-writer or fs

Rest API: Node.js Download CSV file example
Dockerize: Docker Compose Nodejs and Postgres example

Read More

Import CSV data into PostgreSQL using Node.js

In this tutorial, we’re gonna import CSV data into PostgreSQL Database table using Node.js. There are 2 steps:

  • Reading CSV file with fs & fast-csv module
  • Connecting to PostgreSQL Database to save CSV data with pg module

Related Post: Export PostgreSQL data to CSV file using Node.js
Rest API: Node.js: Upload CSV file data into Database with Express
Dockerize: Docker Compose Nodejs and Postgres example

Read More

Export MySQL data to CSV file using Node.js

In previous tutorial, we’ve known how to use Node.js to import CSV data into MySQL Database table. Today you’re gonna look at way to do the opposite: Export MySQL data to CSV file. The process has 2 steps:

  • Read MySQL data using mysql module
  • Export MySQL data to CSV file using one of three modules: fast-csv, csv-writer or fs

Rest API: Node.js Download CSV file from MySQL Database example

Read More