![]() config, contains a configuration file, which tells CLI how to connect with database.This will add these folders in your project structure . You can install the CLI using one of many commands, one of the methods is using NPX npx sequelize-cli init ![]() This is a command-line tool to help you setup Database changes without actually changing the database from Native SQL commands. In this integration we will use the sequelize-cli , this is different from sequelize NPM module. This is mandatory for you to install if you are using MySQL you can change this connector if you are using other SQL versions. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, SSL. Mysql2 - MySQL client for Node.js with a focus on performance. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite, and MSSQL and features solid transaction support, relations, read replication, and more. Sequelize - Sequelize is a promise-based ORM for Node.js and io.js. Morgan - HTTP request logger middleware for node.js, Named after Dexter, a show you should not watch until completion.Ĭookie-parser - Parse Cookie header and populate req.cookies with an object keyed by the cookie names. npm install express cors morgan sequelize cookie-parser mysql2Įxpress - Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.Ĭors - Cross-origin resource sharing ( CORS) is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served Now we will install some of the dependencies that will help in construct our API server easily. Now we have to add index.js (main script of Node JS project) and also add this code to package.json like this - "scripts":
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |