{"id":21405671,"url":"https://github.com/frf/node-server-ts-knex-jwt","last_synced_at":"2026-05-18T03:05:33.972Z","repository":{"id":69886866,"uuid":"286619147","full_name":"frf/node-server-ts-knex-jwt","owner":"frf","description":"Server node ","archived":false,"fork":false,"pushed_at":"2020-08-11T01:58:19.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-09-21T23:37:23.525Z","etag":null,"topics":["jwt","mysql","nodejs-server"],"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/frf.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-08-11T01:48:39.000Z","updated_at":"2020-08-17T22:52:27.000Z","dependencies_parsed_at":"2023-02-22T09:00:21.627Z","dependency_job_id":null,"html_url":"https://github.com/frf/node-server-ts-knex-jwt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frf/node-server-ts-knex-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frf%2Fnode-server-ts-knex-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frf%2Fnode-server-ts-knex-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frf%2Fnode-server-ts-knex-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frf%2Fnode-server-ts-knex-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frf","download_url":"https://codeload.github.com/frf/node-server-ts-knex-jwt/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frf%2Fnode-server-ts-knex-jwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["jwt","mysql","nodejs-server"],"created_at":"2024-11-22T16:27:31.892Z","updated_at":"2026-05-18T03:05:33.917Z","avatar_url":"https://github.com/frf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Create server NodJS with typescript\n\n## Init project\n- yarn init -yp\n## Add typescript in project\n- yarn add typescript -D\n## Init config auto TypeScript\n- yarn tsc --init\n\n## Configure ecma script to es2017 in file tsconfig.json line 7 (target)\n\n## Add ts-node-dev wtach codification\n- yarn add ts-node-dev -D\n\n## Add script init in package.json\n### --transpile-only don't check erros\n### --ignore-watch node_modules don't check code in node_modules\n### --respawn restart auto\n\n\"scripts\": {\n    \"start\": \"tsnd --transpile-only --ignore-watch node_modules --respawn src/server.ts\"\n}\n\n## Add express microframework\n- yarn add express\n\n## Add types express\n- yarn add @types/express -D\n\n## Use JSON in express\napp.use(express.json());\n\n## GET params use request.params\napp.post('/users/:id', (request, response) =\u003e { \n    console.log(request.params)\n})\n\n## Add knex and sqlite3 \n- yarn add knex sqlite3\n\n## Create migrations with files em folder migrations and file config knexfile.ts overwrite commands\n\"knex:migrate\": \"knex --knexfile knexfile.ts migrate:latest\",\n\"knex:migrate:rollback\": \"knex --knexfile knexfile.ts migrate:rollback\"\n\n## Add cors\n- yarn add cors\n  \n## Add typescript cors\n- yarn add @types/cors -D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrf%2Fnode-server-ts-knex-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrf%2Fnode-server-ts-knex-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrf%2Fnode-server-ts-knex-jwt/lists"}