{"id":13496006,"url":"https://github.com/kentloog/nestjs-sequelize-typescript","last_synced_at":"2025-03-28T17:34:39.910Z","repository":{"id":40748488,"uuid":"182144708","full_name":"kentloog/nestjs-sequelize-typescript","owner":"kentloog","description":"Nest + sequelize-typescript + JWT + Jest + Swagger","archived":false,"fork":false,"pushed_at":"2023-01-23T22:36:00.000Z","size":1344,"stargazers_count":350,"open_issues_count":22,"forks_count":86,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-01T19:57:32.038Z","etag":null,"topics":[],"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/kentloog.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-04-18T19:19:55.000Z","updated_at":"2024-07-25T21:55:58.000Z","dependencies_parsed_at":"2023-02-13T04:16:06.872Z","dependency_job_id":null,"html_url":"https://github.com/kentloog/nestjs-sequelize-typescript","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/kentloog%2Fnestjs-sequelize-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentloog%2Fnestjs-sequelize-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentloog%2Fnestjs-sequelize-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentloog%2Fnestjs-sequelize-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentloog","download_url":"https://codeload.github.com/kentloog/nestjs-sequelize-typescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222402878,"owners_count":16978760,"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-07-31T19:01:40.643Z","updated_at":"2024-10-31T11:30:37.101Z","avatar_url":"https://github.com/kentloog.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Integrations","Resources","资源"],"sub_categories":["集成"],"readme":"![Nest](assets/logo.png)\n\n## Description\n\nStarter kit project made with [Nest](https://github.com/nestjs/nest) that demonstrates CRUD user, JWT authentication, CRUD posts and e2e tests.\n\n### Technologies implemented:\n\n-   [sequelize-typescript](https://github.com/RobinBuschmann/sequelize-typescript) (ORM) + [PostgreSQL](https://www.postgresql.org/)\n-   [JWT](https://jwt.io/)\n-   [Jest](https://jestjs.io/)\n-   [Swagger](https://swagger.io/)\n\n## Prerequisites\n\n-   [Node.js](https://nodejs.org/) (\u003e= 10.8.0)\n-   [npm](https://www.npmjs.com/) (\u003e= 6.5.0)\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Setting up the database for development and test\n\nPostgreSQL database connection options are shown in the following table:\n\n| Option   | Development | Test      |\n| -------- | ----------- | --------- |\n| Host     | localhost   | localhost |\n| Port     | 5432        | 5432      |\n| Username | postgres    | postgres  |\n| Password | postgres    | postgres  |\n| Database | nest        | nest_test |\n\n## Running the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n## Test\n\n```bash\n# e2e tests\n$ npm run test\n```\n\n## Other commands\n\n```bash\n# formatting code\n$ npm run format\n\n# run linter\n$ npm run lint\n\n# create database\n$ npm run db:create\n\n# run migrations\n$ npm run db:migrate\n\n# run seeders\n$ npm run db:seed-dev\n\n# reset database\n$ npm run db:reset\n\n# drop database\n$ npm run db:drop\n\n```\n\n## Run production configuration\n\n```\nNODE_ENV=production \\\nDATABASE_HOST=db.host.com \\\nDATABASE_PORT=5432 \\\nDATABASE_USER=user \\\nDATABASE_PASSWORD=pass \\\nDATABASE_DATABASE=database \\\nJWT_PRIVATE_KEY=jwtPrivateKey \\\nts-node -r tsconfig-paths/register src/main.ts\n```\n\n## Swagger API docs\n\nThis project uses the Nest swagger module for API documentation. [NestJS Swagger](https://github.com/nestjs/swagger) - [www.swagger.io](https://swagger.io/)  \nSwagger docs will be available at localhost:3000/documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentloog%2Fnestjs-sequelize-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentloog%2Fnestjs-sequelize-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentloog%2Fnestjs-sequelize-typescript/lists"}