{"id":18498618,"url":"https://github.com/masfranzhuo/sequalize-express-sqlite","last_synced_at":"2025-10-05T15:34:57.786Z","repository":{"id":174559586,"uuid":"121252198","full_name":"masfranzhuo/sequalize-express-SQLite","owner":"masfranzhuo","description":"Node.js CRUD application based on the SQLite database design and Express.js framework","archived":false,"fork":false,"pushed_at":"2018-03-14T07:59:54.000Z","size":10,"stargazers_count":29,"open_issues_count":0,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:51:31.041Z","etag":null,"topics":["express","express-js","expressjs","node","node-js","nodejs","nodejs-framework","sequalize","sequalizejs","sqlite","sqlite-database","sqlite3","sqlite3-database"],"latest_commit_sha":null,"homepage":"http://sequalize-express-sqlite.herokuapp.com/","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,"governance":null}},"created_at":"2018-02-12T13:50:41.000Z","updated_at":"2025-02-19T10:58:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"aba50d27-40f2-4fdb-a92c-8676ea2e1641","html_url":"https://github.com/masfranzhuo/sequalize-express-SQLite","commit_stats":null,"previous_names":["masfranzhuo/sequalize-express-sqlite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-SQLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-SQLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-SQLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masfranzhuo%2Fsequalize-express-SQLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masfranzhuo","download_url":"https://codeload.github.com/masfranzhuo/sequalize-express-SQLite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949895,"owners_count":21023410,"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-js","nodejs","nodejs-framework","sequalize","sequalizejs","sqlite","sqlite-database","sqlite3","sqlite3-database"],"created_at":"2024-11-06T13:41:43.315Z","updated_at":"2025-10-05T15:34:52.754Z","avatar_url":"https://github.com/masfranzhuo.png","language":"JavaScript","readme":"[![Build Status](https://travis-ci.org/masfranzhuo/sequalize-express-SQLite.svg?branch=master)](https://travis-ci.org/masfranzhuo/sequalize-express-SQLite)\n# Node.js sequelize express CRUD\nNode.js CRUD application based on the SQLite database design and Express.js framework\n\nThis Node.js CRUD code use \n- Express.js framework\n- SQLite database\n- sequelize ORM\n- dotenv module for setting environment\n```\nnpm init\n\nnpm install --save express sqlite3 sequelize body-parser\n\nnpm install --save dotenv\n```\n\n## Database\n\nThe application connect to SQLite database using sequalize. The configuration of database added in `models/index.js`. Create folder `data` on the root project for SQLite storage path.\n\n```\nvar sequelize = new Sequelize('example', 'root', '', {\n    host: 'localhost',\n    dialect: 'sqlite',\n    operatorsAliases: false,\n    // SQLite database path\n    storage: './data/database.sqlite'\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\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```\n\n## Documentation\nThis API documented with [Swagger](https://app.swaggerhub.com/apis/masfranzhuo/sequalize-express-SQLite/1.0.0) and hosted on [Heroku](http://sequalize-express-sqlite.herokuapp.com/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasfranzhuo%2Fsequalize-express-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasfranzhuo%2Fsequalize-express-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasfranzhuo%2Fsequalize-express-sqlite/lists"}