node

A collection of 8 post

Fullstack image app gallery with comments

app You can find the source code here: https://github.com/danielpdev/fullstack-posts-pictures-users This is a simple app using Angular version 8.0.0 and express 4.16.3 as backend. It uses mongoose 5.7.5 as database. Features: User singup User login Image upload Image comments Filter by location and…

Fullstack express and angular with SSR

app You can find the source code here: https://github.com/danielpdev/fullstack-posts-pictures-users Features: Server-side rendering (SSR) with Angular Universal products brands comments image upload

Read a big file using NodeJS streams

Lets say that you have a file with 100.000 rows and you need to read it all. How should you proceed doing this task using a stream in . Create a file with 100.000 rows from linux command; Keep the path as it will get deleted if you somehow forget to delete the file. Solution Now let’s write our…

How to create a basic cli app using node and prompts

What is a command-line interface(CLI) ? It's just a program that takes command line arguments and performs a task.

Using NodeJS streams

What is stream? A stream is a sequence of elements that become available over time. You can process chunks of a big file without loading the whole file at once into memory. In streams are a core feature and understanding them is a good way to make your life easier as a NodeJS developer. NodeJS…

Get rid of long paths

Get rid of long paths If you are using paths and the project it’s getting bigger you might want to consider using absolute paths: create a .env file under the root directory of your node app: This way you’ll not have to worry again about ugly paths and you can move files within src folder freerly.

Get started with RabbitMQ using ReactJS

Achieve an easy app that sums up two numbers using a RabbitMQ queue. Before starting this post I advise that you should have already complete the RabbitMQ starting tutorial. 1. Complete the task using only javascript: That’s all it takes to complete an easy task like adding up two numbers.…

Password strength visualization for Angular 7

app You can find the source code here: https://github.com/danielpdev/lib-psv lib-psv Super awesome password strength visualization for Angular 7 now has an npm package. Here is the link: https://www.npmjs.com/package/lib-psv Basic usage: https://codesandbox.io/s/035l7v1zmn Github https://github.com…