Angular-Electronjs – Token registration using the fs API from Nodejs

Angular-Electronjs – Token registration using the fs API from Nodejs

In the article « Angular-ElectronJS – Login API REST jwt », the user’s token was saved in his browser thanks to localStorage. But here, our goal is to create a cross-platform application: desktop software and web application, so we will adjust our code to meet this goal. A few steps : StorageService The creation of […]

Featherjs – jointures des requêtes – BelongsTo, hasOne, hasMany

Cet article fait d’une série d’article sur Feathersjs . Nous avons précédemment abordé les points suivants : C.R.U.D (Create Read Update Delete) avec une base de données MySQL en utilisant lORM Sequelize Authentification jwt et protection dune ressource (URL) Envoi de fichier vers un serveur avec multer Dans cet article, nous allons voir comment faire […]

Featherjs – Upload de fichier simple

Dans l’article précédent: Featherjs – authentification avec token , nous avons abordé : L’authentification d’un utilisateur via jwt La protection d’une ressource: URL … en créant un service event . Dans cet article, nous allons toujours utiliser le service event et présenterons l’envoi de fichier simple depuis la machine vers le serveur. Installation de librairies […]

Featherjs – Authentification avec token

Dans l’article précédent: introduction à feathersjs , nous avons abordé : La création d’une api Restful avec featherjs en utilisant Sequelize . On a choisi MySQL comme gestionnaire de base de données. Des exemples d’utilisation de service feathers tels que : « create, update, delete, get« .. Des requêtes complexes sans toucher au code Le tri, le […]

Débuter avec Featherjs – connexion MySQL avec Sequelize

Présentation Featherjs est un framework javascript/nodejs. Il a pour objectif de créer une API RESTful. Il fonctionne avec plusieurs technologies telles que : expressjs , socket.io … Prérequis Installons nodejs . Si ce n’est pas encore fait, l’installation est très simple. Sur Windows, il faut aller sur https://nodejs.org/en/ et télécharger l’installateur On vérifie ensuite la […]

Angular-Electronjs – Enregistrement du token grâce à l’API fs de Nodejs

Dans l’article « Angular-ElectronJS – Login API REST jwt », le token de l’utilisateur était enregistré dans son navigateur grâce au localStorage. Or nous avons comme objectif de créer une application multiplateforme : logiciel de bureau et application web, nous allons ajuster notre code pour répondre à cet objectif. Nous allons suivre quelques étapes : […]

Create a blog in nodejs using Hexo

Hexo is a framework built with nodejs to create a blog quickly and easily. Like wordpress or other blog platforms, articles and content are not stored in databases but the form of files written with the markdown language. These Markdown files will then be compiled into html files. Like any application nodejs, there are several […]

Créer un blog en nodejs en utilisant hexo

Hexo est un framework construit avec nodejs permettant de créer rapidement et facilement un blog. A l’instar de wordpress ou d’autres plateformes de blog, les articles et contenus ne sont pas stockés en base de données mais sous forme de fichiers écrits avec le langage markdown . Ces fichiers markdown seront ensuite compilés en fichiers […]

Expressjs — cors and jwt

Let’s continue the article on API REST with sequelize In this article, we’ll add security to our application. There will be an /api/user/login url called in POST and allowing to connect thanks to the username/password pair. Once logged in, the information accessible only by a logged in user will be displayed. We will also add […]

expressjs — Connecting to a database with sequelize and its extensions (sequelize-cli, sequelize-auto, etc.)

This article is the continuation of a first article on the creation of a web application in nodejs thanks to the express-generator package. This time, our goal is to add a MySQL connection in order to retrieve information from a database and display this information in the application as a simple list. MySQL will be […]