{"id":20532880,"url":"https://github.com/la3rence/node-express-example","last_synced_at":"2025-04-14T06:32:27.332Z","repository":{"id":37107746,"uuid":"439387387","full_name":"la3rence/node-express-example","owner":"la3rence","description":"Template Node.js Project (integration with swagger for API docs, mocha for testing, code coverage, dockerize, and ci/cd by Jenkins) Node.js 模版项目","archived":false,"fork":false,"pushed_at":"2025-04-11T00:00:59.000Z","size":782,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T01:18:31.465Z","etag":null,"topics":["best-practice","express","http-server","javascript","mocha","nodejs","swagger","template-project","template-repository"],"latest_commit_sha":null,"homepage":"https://node.lawrenceli.me","language":"JavaScript","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/la3rence.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,"zenodo":null}},"created_at":"2021-12-17T16:03:13.000Z","updated_at":"2025-04-11T00:01:01.000Z","dependencies_parsed_at":"2022-07-12T02:30:42.291Z","dependency_job_id":"9185b1cc-2c4c-4510-aac1-bed9162fd976","html_url":"https://github.com/la3rence/node-express-example","commit_stats":null,"previous_names":["la3rence/node-express-example"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la3rence%2Fnode-express-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la3rence%2Fnode-express-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la3rence%2Fnode-express-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la3rence%2Fnode-express-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/la3rence","download_url":"https://codeload.github.com/la3rence/node-express-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248833933,"owners_count":21168931,"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":["best-practice","express","http-server","javascript","mocha","nodejs","swagger","template-project","template-repository"],"created_at":"2024-11-16T00:17:34.668Z","updated_at":"2025-04-14T06:32:27.282Z","avatar_url":"https://github.com/la3rence.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Express Template\n\n[![Mocha CI](https://github.com/Lonor/express-api/actions/workflows/ci.yaml/badge.svg)](https://github.com/la3rence/express-api/actions/workflows/ci.yaml)\n[![codecov](https://codecov.io/gh/la3rence/node-express-example/branch/main/graph/badge.svg?token=KI6j0Pvoid)](https://codecov.io/gh/la3rence/node-express-example)\n\nThis is a demo app when I was learning Node.js with pure ESM support, test coverage, ci/cd, container support and swagger integration.\n\n## Start\n\n```sh\npnpm start\n```\n\nThis will listen the tcp port 8080 to provide the http service.\n\n## Test\n\n```sh\npnpm test\n```\n\nUsing `mocha`, `chai` to do the E2E testing. (Assertion library and test framework)\nUsing `c8` to do the code coverage. Try `pnpm run test:coverage` to see the coverage report under the `coverage` directory.\n\nTIPS: Using `mocha -g ${keyword}` to execute the test cases with name contains `${keyword}`.\nor `pnpm run test:grep ${keyword}`.\n\n## Env\n\nTouch a file called `.env` to export env variables on local dev machine (by `dotenv`).\n\n## Swagger\n\nThis project using `swagger-ui` to provide the swagger UI and using `swagger-autogen` to generate the swagger spec json file. The default swagger ui page is `/api/docs`.\n\n## Serverless\n\nThe default directory for these functions is `./api`.\n\nI'm not using the way Vercel recommends, but the traditional way based on express - which makes it easier for me to deploy by any means, like using Docker or directly using node.js.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fla3rence%2Fnode-express-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fla3rence%2Fnode-express-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fla3rence%2Fnode-express-example/lists"}