{"id":18498638,"url":"https://github.com/masfranzhuo/sequalize-express-crud","last_synced_at":"2025-09-12T07:34:08.097Z","repository":{"id":49877528,"uuid":"120278840","full_name":"masfranzhuo/sequalize-express-CRUD","owner":"masfranzhuo","description":"Node.js CRUD application based on the MySQL database design and Express.js framework","archived":false,"fork":false,"pushed_at":"2018-02-05T08:57:30.000Z","size":2,"stargazers_count":9,"open_issues_count":0,"forks_count":9,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T18:06:11.371Z","etag":null,"topics":["express","express-js","expressjs","node","node-crud","node-js","nodejs","nodejs-framework","sequalize","sequalizejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masfranzhuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-05T08:53:02.000Z","updated_at":"2024-12-15T07:57:25.000Z","dependencies_parsed_at":"2022-09-23T09:23:27.997Z","dependency_job_id":null,"html_url":"https://github.com/masfranzhuo/sequalize-express-CRUD","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masfranzhuo/sequalize-express-CRUD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-CRUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-CRUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-CRUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-CRUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masfranzhuo","download_url":"https://codeload.github.com/masfranzhuo/sequalize-express-CRUD/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-CRUD/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259783062,"owners_count":22910300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","express-js","expressjs","node","node-crud","node-js","nodejs","nodejs-framework","sequalize","sequalizejs"],"created_at":"2024-11-06T13:41:49.426Z","updated_at":"2025-06-14T08:09:08.316Z","avatar_url":"https://github.com/masfranzhuo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js sequelize express CRUD\nNode.js CRUD application based on the MySQL database design and Express.js framework\n\nThis Node.js CRUD code use \n- Express.js framework\n- MySQL database\n- sequelize ORM\n```\nnpm install --save express mysql2 sequelize body-parser\n```\n\n## Database\n\nThe application connect to MySQL database using sequalize. The configuration of database added in 'models/index.js'.\n\n```\nvar sequelize = new Sequelize('example', 'root', '', {\n    host: 'localhost',\n    dialect: 'mysql',\n    operatorsAliases: false\n});\n```\n\nInitialize the configuration and connect to database on 'app.js'.\n```\nvar models = require(\"./models\");\n\nmodels.sequelize.sync().then(function() {\n    console.log('connected to database')\n}).catch(function(err) {\n    console.log(err)\n});\n```\n\nThis app use database named 'example' and 'books' table which has 4 columns. \n```\nCREATE TABLE IF NOT EXISTS `books` (\n  `id` int(11) NOT NULL AUTO_INCREMENT,\n  `title` varchar(50) NOT NULL,\n  `author` varchar(50) NOT NULL,\n  `category` varchar(50) NOT NULL,\n  PRIMARY KEY (`id`)\n) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;\n```\n\n## Route\nCreate 'routes' folder on the root path and put route file there. After that initialiaze and register route file path on 'app.js' file.\n\n```\nvar books = require('./routes/books');\n\napp.use('/books', books);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasfranzhuo%2Fsequalize-express-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasfranzhuo%2Fsequalize-express-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasfranzhuo%2Fsequalize-express-crud/lists"}