{"id":21031560,"url":"https://github.com/slaveofcode/express-ts-sequelize-boilerplate","last_synced_at":"2025-12-30T05:42:09.518Z","repository":{"id":41778363,"uuid":"196937975","full_name":"slaveofcode/express-ts-sequelize-boilerplate","owner":"slaveofcode","description":" Simple ExpressJS with Typescript Skeleton/Boilerplate using overnightjs decorator and Sequelize integration","archived":false,"fork":false,"pushed_at":"2023-01-07T07:52:15.000Z","size":1338,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T15:25:52.337Z","etag":null,"topics":["express","express-typescript","overnightjs","sequelize","sequelize-typescript","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/slaveofcode.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":"2019-07-15T06:31:06.000Z","updated_at":"2022-03-28T08:08:21.000Z","dependencies_parsed_at":"2023-02-06T15:15:58.585Z","dependency_job_id":null,"html_url":"https://github.com/slaveofcode/express-ts-sequelize-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fexpress-ts-sequelize-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fexpress-ts-sequelize-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fexpress-ts-sequelize-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Fexpress-ts-sequelize-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaveofcode","download_url":"https://codeload.github.com/slaveofcode/express-ts-sequelize-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243472231,"owners_count":20296293,"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-typescript","overnightjs","sequelize","sequelize-typescript","typescript"],"created_at":"2024-11-19T12:29:14.804Z","updated_at":"2025-12-30T05:42:09.493Z","avatar_url":"https://github.com/slaveofcode.png","language":"TypeScript","readme":"# Express Ts Sequelize Boilerplate\n\nThis is a simple Typescript Skeleton/Boilerplate project to help you get started with Express in a few minutes.\n\n## Quick Start\n\n### Start Dev!\n\nSimply clone this repository and running `npm i` to get all dependencies installed. After completed run command below to run the development server.\n\n\u003e npm run dev\n\n### Build\n\nGet ready for production? run command below to transpile targeting commonjs script.\n\n\u003e npm run build\n\nStart the transpiled script \n\n\u003e npm start\n\n### Lint via tslint\n\n\u003e npm run lint\n\n### Uses OvernightJs Decorator\n\nThis project was setup using OvernightJS typescript decorator to help you managing the controllers \u0026 the express behaviors. Take a look into `src/controllers/UserController.ts` to get you inspired!.\n\n### Controllers\n\nAs mentioned before, you can see the example of controller on `src/controllers/UserController.ts`. It has several api endpoint examples also with error exception.\n\n### Middlewares\n\nMiddlewares are placed into `src/middlewares` directory, everything about middleware should be dropped here.\n\n### Exceptions\n\nThis project already supplied with some basic Exception class, see `src/exceptions` for the details. Also take a look into implementation on `controllers/UserController.ts` and `middlewares/error*.ts` for more detail usage.\n\n### Interfaces\n\nMiddlewares are placed into `src/interfaces` directory, everything about interface should be dropped here.\n\n## SequelizeJs Integration\n\nInteract with database using SequelizeJs through typescript decorator via [sequelize-typescript](https://github.com/RobinBuschmann/sequelize-typescript).\n\nMigrations \u0026 Seeders are defined on `bootstrap/sequelize` folder, and models are placed on `src/repositories/pg/models`. \n\nSee the example of using models on `src/controllers/UserController.ts' for faster adaptation.\n\n### Migration Commands\n\n- `new:migration`: Create new migration \n\n  \u003e npm run new:migration 'create-table-user'\n\n- `new:seed`: Create new seeders\n\n  \u003e npm run new:seed 'initialize-user-admin'\n\n- `run:migration`: Running existing migrations\n\n  \u003e npm run run:migration\n\n- `run:migration:undo`: Undo the migration one-step \n\n  \u003e npm run run:migration:undo\n\n- `run:migration:undo-all`: Undo all the migrations\n\n  \u003e npm run run:migration:undo:all\n\n- `run:migration:undo-until \u003cmigration-file\u003e`: Undo all the migrations until specific migration target\n\n  \u003e npm run run:migration:undo-until 20190715055658-create-user-table\n\n\n### Seeds Commands\n\n- `new:seed`: Create new seeder\n\n  \u003e npm run new:seed initial-user\n\n- `run:seed`: Run all seeders\n\n  \u003e npm run run:seed\n\n- `run:seed:undo`: Undo the seeds one-step\n\n  \u003e npm run run:seed:undo\n\n- `run:seed:undo-all`: Undo all the seeds\n\n  \u003e npm run run:seed:undo-all\n\n\n## Code Generator\n\nThis project shipped with a simple code generator borrows from `hyphen`. Some templates already setup on `bootstrap/generator` for initial project.\n\nExample Command\n\n\u003e node ./gen.js controller new Auth --endpoint_base api/auth\n\nThe command above will generate new controller file called `AuthController.ts` with setup api endpoint to `api/auth`.\n\nYou can create more template like this with different options and purpose tost up the productivity. See the template example on `generator/controller/new` directory and visit [http://www.hygen.io/generators](http://www.hygen.io/generators) for further possibility.\n\n# License\n\nThis project is licensed under the MIT License \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Fexpress-ts-sequelize-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaveofcode%2Fexpress-ts-sequelize-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Fexpress-ts-sequelize-boilerplate/lists"}