Node.js

JWT authentication with Angular 10 and Node.js/ExpressJS 4 (MySQL)

I will assume that you already have your Front with Angular 10 and your Back with Node.js ExpressJS 4 and I will not show the creation part of these two projects. Creating the login form under Angular The back side of the form : Go to your form.component.ts file (Make it according to your components…) and we will build it as on the example : …

JWT authentication with Angular 10 and Node.js/ExpressJS 4 (MySQL) Lire la suite »

VueJS 3, ExpressJS 4.17 | Uploading and resizing an image

Uploading an image and resizing with VueJS 3 and ExpressJS 4.17 I will show you how to make a simple form with VueJS 3, to upload an image and a text field that could be used for the image’s alternative text. The server is running ExpressJS 4.17. We will need several libraries : VueJS Front Axios (V0.21) to make HTTP requests to the server Back …

VueJS 3, ExpressJS 4.17 | Uploading and resizing an image Lire la suite »

NodeJS | Send a mail with nodemailer and receive it with maildev

Requirements to send an email with nodemailer under NodeJS Install nodemailer from npm : https://www.npmjs.com/package/nodemailer To receive mail locally: https://github.com/maildev/maildev (Useful tools to install globally) To receive mail locally with maildev To receive mail with maildev, you must first launch maildev after installing it globally (npm i maildev -g), then go to a command prompt to type maildev Send the mail with nodemailer  You will …

NodeJS | Send a mail with nodemailer and receive it with maildev Lire la suite »

Angular, ExpressJS | Authentification JWT avec Angular 10 et ExpressJS 4 (MySQL)

Je vais partir du principe que vous avez déjà votre Front avec Angular 10 et votre Back avec ExpressJS 4 et je ne montrerais pas la partie de création de ces deux projets. Création du formulaire de login sous Angular Le côté back du formulaire : Rendez vous sur votre fichier formulaire.component.ts (Faites en fonction de vos composants…) et nous allons le construire comme sur l’exemple : Nous …

Angular, ExpressJS | Authentification JWT avec Angular 10 et ExpressJS 4 (MySQL) Lire la suite »

VueJS 3, ExpressJS 4.17 | Upload et redimensionnement d’une image

Upload d’une image et redimensionnement avec VueJS 3 et ExpressJS 4.17 Je vais vous présenter comment faire un formulaire simple avec VueJS 3, pour pouvoir upload une image ainsi qu’un champ de texte qui pourrait servir au texte alternatif de l’image. Le serveur tourne sous ExpressJS 4.17. Nous allons avoir besoin de plusieurs librairies : Front VueJS Axios (V0.21) pour effectuer des requêtes …

VueJS 3, ExpressJS 4.17 | Upload et redimensionnement d’une image Lire la suite »

NodeJS | Envoyer un mail avec nodemailer et le recevoir avec maildev

Prérequis pour envoyer un email avec nodemailer sous NodeJS Installer nodemailer à partir de npm : https://www.npmjs.com/package/nodemailer Pour recevoir le mail en local : https://github.com/maildev/maildev (Outils pratique à installer en global) Recevoir le mail en local avec maildev Pour recevoir le mail avec maildev, il faut d’abord lancer maildev après l’avoir installé en global (npm i maildev -g), ensuite aller dans une invite de commande de taper maildev Envoyer …

NodeJS | Envoyer un mail avec nodemailer et le recevoir avec maildev Lire la suite »