{"id":20114364,"url":"https://github.com/jetbridge/generator-jkv2","last_synced_at":"2025-08-15T17:05:21.429Z","repository":{"id":42673571,"uuid":"324851379","full_name":"jetbridge/generator-jkv2","owner":"jetbridge","description":"Opinionated Yeoman generator for full-stack mono-repo TypeScript projects","archived":false,"fork":false,"pushed_at":"2023-04-24T19:23:15.000Z","size":970,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-18T02:34:42.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jetbridge.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":"2020-12-27T21:23:09.000Z","updated_at":"2021-03-21T17:30:22.000Z","dependencies_parsed_at":"2024-11-13T18:33:25.905Z","dependency_job_id":"bd584bf0-0361-4e7b-a15c-6726151a1098","html_url":"https://github.com/jetbridge/generator-jkv2","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.052631578947368474","last_synced_commit":"df94768c4e27830db54e5440770d20946817ce7b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jetbridge/generator-jkv2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fgenerator-jkv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fgenerator-jkv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fgenerator-jkv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fgenerator-jkv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jetbridge","download_url":"https://codeload.github.com/jetbridge/generator-jkv2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetbridge%2Fgenerator-jkv2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270602449,"owners_count":24614260,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T18:29:29.986Z","updated_at":"2025-08-15T17:05:21.399Z","avatar_url":"https://github.com/jetbridge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JKv2 Yeoman generator\nOpinionated generator for mono-repo web apps.\n\nFeatures:\n- Monorepo with npm7 workspaces (backend, core, frontend)\n- No framework. Plain Typescript functions and API Gateway routing to Lambdas running in VPC\n- TypeORM \u0026 Postgres\n- Cognito\n\n## Quickstart\n\n### Pre-requisites\n* npm 7\n* yeoman\n* jkv2 generator\n\n```shell\nnpm i -g npm@7 yo generator-jkv2\nyo jkv2\n```\n\n### Useful commands\n- `yo jkv2:model`  # Create a new TypeORM model and CRUD for it\n\n- `yo jkv2:api`  # Create a new API endpoint for a model\n\n- `npm run db:init:local`  # Re-creates local DB, migrates and seeds it\n\n- `npm run db:migrate:generate -n $name`  # Create a new migrations\n\n- `npm run sls:deploy:dev`  # Deploy to the dev environment\n\n\n### AWS services schema\n![](public/servicesSchema.png)\n\n### VPC/Aurora Data API\nCurrently VPC connection is recommended.\n\nIt offers DB driver that doesn’t have problems with types unlike the one used by Aurora Data API. However using it is a bit more pricy and there are problems with Lambda timeouts after hitting 10 requests per second on a Lambda.\nOnce the Data API is somewhat more mature we should consider switching to it.\n\n### API validation/serialization\n[lambda-middleware](https://dbartholomae.github.io/lambda-middleware/) and [class-validator](https://github.com/typestack/class-validator) packages are used for incoming request body validation.\n\nCurrently when serializing responses there’s no option to exclude unwanted fields.\n\n### Setting up Cognito\nIn your `.env.local` or in your env variables config on e.g. Netlify you'll have to assign the following env variables:\n```shell\nREACT_APP_COGNITO_IDENTITY_POOL_ID,\nREACT_APP_COGNITO_REGION,\nREACT_APP_COGNITO_IDENTITY_POOL_REGION,\nREACT_APP_COGNITO_USER_POOL_ID,\nREACT_APP_COGNITO_USER_POOL_APP_CLIENT_ID,\nREACT_APP_API_REGION\n```\nTo find some of the values you should login to your aws account\n\n`REACT_APP_COGNITO_USER_POOL_ID`\n![](public/settingUpCognito/how_to_get_cognito_pool_id.png)\n\n`REACT_APP_COGNITO_USER_POOL_APP_CLIENT_ID`\n![](public/settingUpCognito/how_to_get_cognito_app_client_id.png)\n\n`REACT_APP_IDENTITY_POOL_ID`\n![](public/settingUpCognito/how_to_get_cognito_identity_pool_id.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbridge%2Fgenerator-jkv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetbridge%2Fgenerator-jkv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbridge%2Fgenerator-jkv2/lists"}