{"id":18909415,"url":"https://github.com/billowdev/cashflowkub-nestjs-sequelize-api","last_synced_at":"2025-04-15T06:30:41.166Z","repository":{"id":246391907,"uuid":"543635923","full_name":"billowdev/cashflowkub-nestjs-sequelize-api","owner":"billowdev","description":"[Hobies Project :)] personal-financial-management-system-nestjs-restful-api","archived":true,"fork":false,"pushed_at":"2023-02-23T16:43:14.000Z","size":883,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T18:49:58.690Z","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/billowdev.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":"2022-09-30T14:18:08.000Z","updated_at":"2024-10-02T03:30:11.000Z","dependencies_parsed_at":"2024-06-27T19:27:34.805Z","dependency_job_id":null,"html_url":"https://github.com/billowdev/cashflowkub-nestjs-sequelize-api","commit_stats":null,"previous_names":["billowdev/cashflowkub-nestjs-sequelize-api"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fcashflowkub-nestjs-sequelize-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fcashflowkub-nestjs-sequelize-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fcashflowkub-nestjs-sequelize-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billowdev%2Fcashflowkub-nestjs-sequelize-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billowdev","download_url":"https://codeload.github.com/billowdev/cashflowkub-nestjs-sequelize-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249020602,"owners_count":21199586,"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-11-08T09:33:37.036Z","updated_at":"2025-04-15T06:30:36.157Z","avatar_url":"https://github.com/billowdev.png","language":"TypeScript","readme":"## Installation\n\n```bash\n$ npm install\n```\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# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n### package\n\u003cpre\u003e\nyarn add @nestjs/swagger dotenv pg pg-hstore sequelize sequelize-typescript @nestjs/config\nyarn add class-transformer class-validator \nyarn add @fastify/helmet\nyarn add @nestjs/passport @nestjs/jwt passport passport-local passport-jwt\nyarn add argon2\nyarn add @nestjs/sequelize\nyarn add uuid\n \nyarn add fastify-multipart\n\n\u003c!-- yarn add -D @types/multer --\u003e\n\nyarn add fastify-multer\n\u003c!-- yarn add @nestjs/serve-static --\u003e\nyarn add @fastify/static\n\nyarn add -D @types/passport-jwt @types/passport-local\nyarn add -D @types/sequelize\n\u003c/pre\u003e\n\n\n### migration\nhttps://github.com/sequelize/cli/pull/987#issuecomment-1153105548\n\n\u003cpre\u003e\nnpx sequelize-cli@6.2.0 db:migrate\nnpx sequelize-cli migration:generate --name create-user\n\u003c/pre\u003e\n\n### FASTIFY\n\u003cpre\u003e\nyarn add @nestjs/platform-fastify @fastify/static fastify\n----\nmain.ts\n----\n\nconst envToLogger = {\n  development: {\n    transport: {\n      target: 'pino-pretty',\n      options: {\n        translateTime: 'HH:MM:ss Z',\n        ignore: 'pid,hostname',\n      },\n    },\n  },\n  production: true,\n  test: false,\n}\n\nasync function bootstrap() {\n  const app = await NestFactory.create\u003cNestFastifyApplication\u003e(\n    AppModule,\n    new FastifyAdapter({\n      logger: envToLogger[process.env.NODE_ENV] ?? true\n    })\n  );\n\n\u003c/pre\u003e\n\n### Seeder\n\u003cpre\u003e\nnpx sequelize-cli seed:create --name user-seeder --seeders-path ./src/database/seeders/\n\u003c/pre\u003e\n\n\u003cpre\u003e\n  npx sequelize-cli db:drop                           Drop database specified by configuration\n  npx sequelize-cli init                              Initializes project\n  npx sequelize-cli init:config                       Initializes configuration\n  npx sequelize-cli init:migrations                   Initializes migrations\n  npx sequelize-cli init:models                       Initializes models\n  npx sequelize-cli init:seeders                      Initializes seeders\n  npx sequelize-cli migration:generate                Generates a new migration file\n  npx sequelize-cli migration:create                  Generates a new migration file\n  npx sequelize-cli model:generate                    Generates a model and its migration\n  npx sequelize-cli model:create                      Generates a model and its migration\n \n  npx sequelize-cli seed:generate                     Generates a new seed file\n  npx sequelize-cli seed:create                       Generates a new seed file\n\n\u003c/pre\u003e\n\n##### Running Seeds\n\u003cpre\u003e\nnpx sequelize-cli db:seed:all\n\u003c/pre\u003e\n\n\n##### Undoing Seeds\n\u003cpre\u003e\nSeeders can be undone if they are using any storage. There are two commands available for that:\n\nIf you wish to undo the most recent seed:\n\n  npx sequelize-cli db:seed:undo\n\nIf you wish to undo a specific seed:\n\n  npx sequelize-cli db:seed:undo --seed name-of-seed-as-in-data\n\nIf you wish to undo all seeds:\n\n  npx sequelize-cli db:seed:undo:all\n\u003c/pre\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillowdev%2Fcashflowkub-nestjs-sequelize-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillowdev%2Fcashflowkub-nestjs-sequelize-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillowdev%2Fcashflowkub-nestjs-sequelize-api/lists"}