{"id":22547584,"url":"https://github.com/firmanjs/express-restfull-api-with-sequelize","last_synced_at":"2025-07-11T18:41:01.153Z","repository":{"id":116873746,"uuid":"297852096","full_name":"firmanJS/express-restfull-api-with-sequelize","owner":"firmanJS","description":"express restfull api with sequelize and mysql","archived":false,"fork":false,"pushed_at":"2021-03-07T06:31:13.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T09:11:46.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/firmanJS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-23T04:28:45.000Z","updated_at":"2021-03-07T06:31:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff53d96b-c007-429e-b921-75aba66e95ed","html_url":"https://github.com/firmanJS/express-restfull-api-with-sequelize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firmanJS/express-restfull-api-with-sequelize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fexpress-restfull-api-with-sequelize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fexpress-restfull-api-with-sequelize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fexpress-restfull-api-with-sequelize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fexpress-restfull-api-with-sequelize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firmanJS","download_url":"https://codeload.github.com/firmanJS/express-restfull-api-with-sequelize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fexpress-restfull-api-with-sequelize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264874070,"owners_count":23677001,"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":[],"created_at":"2024-12-07T15:12:23.428Z","updated_at":"2025-07-11T18:41:01.133Z","avatar_url":"https://github.com/firmanJS.png","language":"JavaScript","readme":"# express-restfull-api-with-sequelize\nexpress restfull api with sequelize and mysql\n\n# instalasi\n\nubah file konfigurasi database di `config/index` isi `username`, `password`, `database`, dan `host`\n```js\nrequire(\"dotenv\").config()\n\nconst conf = {};\nconf.environment = process.env.ENV;\nconf.sequelize = {};\nconf.sequelize.username = process.env.DB_USER\nconf.sequelize.password = process.env.DB_PASS\nconf.sequelize.database = process.env.DB_NAME\nconf.sequelize.host = process.env.DB_HOST\nconf.sequelize.dialect = 'mysql';\nconf.sequelize.port = 3306;\nconf.sequelize.define = {\n  charset: 'utf8mb4', \n    dialectOptions: {\n    collate: 'utf8mb4_unicode_ci'\n  }\n}\nconf.ROUND_SALT = 8;\nmodule.exports = conf;\n```\n\nInstall package\n```sh\n$ npm install\n```\n\nGenerate model example\n```\n$ npx sequelize-cli model:generate --name Users --attributes username:string,fullname:string,email:string,password:string\n```\n\nRun Migration\n```sh\n$ npx sequelize-cli db:migrate\n```\n\nGenerate example seeder\n```sh\n$ npx sequelize-cli seed:generate — name demo-user\n```\n\nRunning seeder\n```sh\n$ npx sequelize-cli db:seed:all\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirmanjs%2Fexpress-restfull-api-with-sequelize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirmanjs%2Fexpress-restfull-api-with-sequelize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirmanjs%2Fexpress-restfull-api-with-sequelize/lists"}