Greetings! In a previous, I briefly discussed the steps to create a simple REST server using Node.js. In this post, I'm discussing the steps needed to create a restful crud API using Node, Express, and MySql with Sequelize. The complete source code can be found here . What we build We are going to create CRUD operations for books. It is very simple and we don't go too in-depth as the idea is to explore how we can build a restful API with Node and MySql. Steps Create the project Create the express server Define end points and layers Implement endpoints layers Package structure Create the project We will use ES6 features hence babel is used. Nodemon is used to auto-start the server with new changes. npm init -y npm install express body-parser mysql2 sequelize cors --save npm install @babel/core @babel/node @babel/preset-env --save-dev npm install nodemon --save-dev { "name": "nodejs-rest-crud", "version": "1.0.0", ...
May all beings be happy, be well, be peaceful, and be free