How to convert Existing database to sequelize models using sequelize-auto

If you have existing tables in the database you want to convert into sequelize models then use sequelize auto library. Install Sequelize Auto using CLI npm install -g sequelize-auto Prerequisites:  Are you using MYSQL? Run Below command. (ignore if already installed) npm install -g mysql Are you using Postgres? Run Below command. (ignore if already installed)Continue reading “How to convert Existing database to sequelize models using sequelize-auto”

Getting started with MEAN (Mysql, Express, Angular 6, Node) Part-5

I am explaining about user login and JWT. First, create the configuration file in the backend to store the secret key. I saved in backend/config/conf.js const crypto = require(‘crypto’).randomBytes(256).toString(‘hex’); // Export config object module.exports = {    secret:crypto, } Add below lines in server.js/index.js var config = require(‘./config/conf’); var jwt = require(‘jsonwebtoken’); var user =Continue reading “Getting started with MEAN (Mysql, Express, Angular 6, Node) Part-5”

Getting started with MEAN (Mysql, Express, Angular 6, Node) Part-4

I will explain about user registration using angular 6. Create 3 components sign in and signup & API service using angular-cli. ng g component components/user/signin ng g component components/user/signup ng g service services/api ng g component components/user/userslist Now check the files in src/components/user and src/services. Paste the below code in respected files. install Cryptojs forContinue reading “Getting started with MEAN (Mysql, Express, Angular 6, Node) Part-4”

Getting started with MEAN (Mysql, Express, Angular 6, Node) Part-3

This session, I am explaining about node server creation and table operations from MySQL database using sequelize models. First, initialize Node using below command and fill the required details. npm init now create index.js (mentioned in entry point) file and paste below code. //======== Import Required Files =============== var express = require(‘express’); var bodyparser =Continue reading “Getting started with MEAN (Mysql, Express, Angular 6, Node) Part-3”

Create your website with WordPress.com
Get started