{"id":28024375,"url":"https://github.com/masb0ymas/express-api-sequelize","last_synced_at":"2025-05-11T02:08:03.962Z","repository":{"id":36972831,"uuid":"243315278","full_name":"masb0ymas/express-api-sequelize","owner":"masb0ymas","description":"express-api with Sequelize","archived":false,"fork":false,"pushed_at":"2025-04-23T05:45:07.000Z","size":8747,"stargazers_count":142,"open_issues_count":0,"forks_count":49,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-11T02:07:53.842Z","etag":null,"topics":["expressjs","expresso","husky","nodejs","sequelize-orm","sequelize-typescript","swc","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masb0ymas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null},"funding":{"github":"masb0ymas","patreon":"masb0ymas","open_collective":null,"ko_fi":"masb0ymas","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-02-26T16:50:42.000Z","updated_at":"2025-04-07T05:53:44.000Z","dependencies_parsed_at":"2024-01-24T05:25:36.184Z","dependency_job_id":"5db040c5-ef99-4855-8a8c-fb54e4d47bc6","html_url":"https://github.com/masb0ymas/express-api-sequelize","commit_stats":{"total_commits":1355,"total_committers":6,"mean_commits":"225.83333333333334","dds":"0.31808118081180814","last_synced_commit":"e6f6950323045e2296414a2cb74981e7636f24a2"},"previous_names":["masb0ymas/express-api-sequelize"],"tags_count":73,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masb0ymas%2Fexpress-api-sequelize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masb0ymas%2Fexpress-api-sequelize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masb0ymas%2Fexpress-api-sequelize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masb0ymas%2Fexpress-api-sequelize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masb0ymas","download_url":"https://codeload.github.com/masb0ymas/express-api-sequelize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253505664,"owners_count":21918942,"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":["expressjs","expresso","husky","nodejs","sequelize-orm","sequelize-typescript","swc","typescript"],"created_at":"2025-05-11T02:08:03.419Z","updated_at":"2025-05-11T02:08:03.950Z","avatar_url":"https://github.com/masb0ymas.png","language":"TypeScript","readme":"# Express API with Sequelize\n\n[![Documentation](https://img.shields.io/badge/Documentation-yes-brightgreen.svg)](https://github.com/masb0ymas/express-api-sequelize#readme)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/masb0ymas/express-api-sequelize/graphs/commit-activity)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/masb0ymas/express-api-sequelize/blob/master/LICENSE.md)\n[![Version](https://img.shields.io/badge/Version-6.0.0-blue.svg?cacheSeconds=2592000)](https://github.com/masb0ymas/express-api-sequelize/releases/tag/v6.0.0)\n[![Express](https://img.shields.io/badge/Express-4.21.2-informational?logo=express\u0026color=22272E)](https://expressjs.com/)\n\n![Node](https://badges.aleen42.com/src/node.svg)\n![Eslint](https://badges.aleen42.com/src/eslint.svg)\n![TypeScript](https://badges.aleen42.com/src/typescript.svg)\n![Docker](https://badges.aleen42.com/src/docker.svg)\n\nA robust Express API template with TypeScript, Sequelize ORM, and comprehensive tooling for building production-ready applications.\nBase API using [express-api](https://github.com/masb0ymas/express-api)\n\n## Features\n\n- **[TypeScript](https://github.com/microsoft/TypeScript)** `5.8.x` - Type-safe JavaScript\n- **[Sequelize](https://github.com/sequelize/sequelize)** `6.x` - Powerful ORM for SQL databases\n- **[Express](https://expressjs.com/)** `4.21.x` - Fast, unopinionated web framework\n- **[Nodemailer](https://github.com/nodemailer/nodemailer)** `6.x` - Email sending made simple\n- **[Zod](https://github.com/colinhacks/zod)** `3.x` - TypeScript-first schema validation\n- **[PostgreSQL](https://www.postgresql.org/)** - Advanced open source database\n- **Code Quality**\n  - JavaScript Style with [Standard with TypeScript](https://github.com/standard/eslint-config-standard-with-typescript)\n  - Code formatting with [Prettier](https://github.com/prettier/prettier)\n  - [ESLint](https://github.com/prettier/eslint-config-prettier) and [TypeScript ESLint](https://github.com/typescript-eslint/typescript-eslint) integration\n- **API Documentation** with [Swagger](https://github.com/swagger-api/swagger-ui) OpenAPI `3.x`\n- **Logging** with [Pino](https://github.com/pinojs/pino)\n- **Containerization** with [Docker](https://www.docker.com/)\n\n## Prerequisites\n\n- Node.js \u003e= 20.x\n- PostgreSQL\n- Docker (optional)\n\n## Module System\n\n- By default, the `main` branch uses CommonJs (`type: commonjs`)\n- For ES Module pending implementation because of Sequelize issue.\n\n## Getting Started\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/masb0ymas/express-api-sequelize.git\n   cd express-api-sequelize\n   ```\n\n2. **Set up environment variables**\n\n   ```bash\n   cp .env.example .env\n   ```\n\n   Then configure database settings in the `.env` file.\n\n   or you can generate .env with command:\n\n   ```bash\n   yarn secret\n   ```\n\n3. **Install dependencies**\n\n   ```bash\n   yarn install\n   ```\n\n4. **Set up database**\n\n   ```bash\n   yarn db:create \u0026\u0026 yarn db:reset\n   ```\n\n   Or create your database manually\n\n5. **Start development server**\n\n   ```bash\n   yarn dev\n   ```\n\n   With file watching:\n\n   ```bash\n   yarn dev:watch\n   ```\n\n## Deployment\n\n### Release Process\n\n```bash\nyarn release\n```\n\n### Docker Deployment\n\n```bash\n# Build the Docker image\ndocker build -t yourname/express:v1.0.0 .\n\n# Run the container\ndocker run -p 7000:8000 -d yourname/express:v1.0.0\n```\n\n## Scripts\n\n- `npm run dev` - Start development server with hot reloading\n- `npm run build` - Build for production\n- `npm run start` - Start production server\n- `npm run db:create` - Create database\n- `npm run db:reset` - Reset database schema\n- `npm run release` - Release a new version\n\n## Author\n\n[![Github](https://badges.aleen42.com/src/github.svg)](https://github.com/masb0ymas)\n[![Twitter](https://badges.aleen42.com/src/twitter.svg)](https://twitter.com/masb0ymas)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-Informational?logo=linkedin\u0026color=0A66C2\u0026logoColor=white)](https://www.linkedin.com/in/masb0ymas)\n\n## Support\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/I2I03MVAI)\n\n[\u003cimg height=\"40\" src=\"https://trakteer.id/images/mix/navbar-logo-lite.png\"\u003e](https://trakteer.id/masb0ymas)\n\n[\u003cimg height=\"40\" src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/PayPal.svg/1280px-PayPal.svg.png\"\u003e](https://www.paypal.com/paypalme/masb0ymas)\n","funding_links":["https://github.com/sponsors/masb0ymas","https://patreon.com/masb0ymas","https://ko-fi.com/masb0ymas","https://ko-fi.com/I2I03MVAI","https://www.paypal.com/paypalme/masb0ymas"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasb0ymas%2Fexpress-api-sequelize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasb0ymas%2Fexpress-api-sequelize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasb0ymas%2Fexpress-api-sequelize/lists"}