{"id":23819809,"url":"https://github.com/kth/node-api","last_synced_at":"2025-10-16T17:50:58.013Z","repository":{"id":10794456,"uuid":"67020392","full_name":"KTH/node-api","owner":"KTH","description":"Node API is the backend service for node-web. It is also a template for Node API applications developed at KTH.","archived":false,"fork":false,"pushed_at":"2025-07-09T02:40:59.000Z","size":4999,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-07-09T03:35:17.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KTH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-31T08:49:56.000Z","updated_at":"2025-07-09T02:41:02.000Z","dependencies_parsed_at":"2024-01-27T03:20:58.453Z","dependency_job_id":"0bbdde3c-10a9-4ca3-bd3b-2d3b0b4e0630","html_url":"https://github.com/KTH/node-api","commit_stats":{"total_commits":536,"total_committers":22,"mean_commits":"24.363636363636363","dds":0.6529850746268657,"last_synced_commit":"2527e38495bb9dda3112f510254aeb51ba447c3f"},"previous_names":[],"tags_count":2119,"template":true,"template_full_name":null,"purl":"pkg:github/KTH/node-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fnode-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fnode-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fnode-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fnode-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KTH","download_url":"https://codeload.github.com/KTH/node-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTH%2Fnode-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265047848,"owners_count":23703218,"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":"2025-01-02T07:15:50.375Z","updated_at":"2025-10-16T17:50:57.931Z","avatar_url":"https://github.com/KTH.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node API\n\n## Description\n\nNode API is the backend service for [node-web](https://github.com/KTH/node-web). It is also a template for Node API applications developed at KTH.\n\n## Installation\n\n### Install Dependencies\n\n```sh\n$ npm install\n```\n\n### Environment Variables\n\nSensible defaults are set and the application can run locally with an empty `.env` file.\n\n| Name                 | Description                                                                          | Default Value                                        |\n| -------------------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------- |\n| `API_KEYS`           | Configuration for access to API; string with name, key, and scope                    | `?name=devClient\u0026apiKey=1234\u0026scope=write\u0026scope=read` |\n| `LOGGING_ACCESS_LOG` | Enables or disabled application access log, used by dependency `kth-node-access-log` | `true`                                               |\n| `LOGGING_LEVEL`      | Application logging level, used by dependency `@kth/log`                             | `debug`                                              |\n| `MONGODB_URI`        | Document database connection string                                                  | `mongodb://127.0.0.1:27017/node`                     |\n| `SERVER_PORT`        | The HTTP server port                                                                 | `3001`                                               |\n| `SERVICE_PUBLISH`    | Root path for the application                                                        | `/api/node`                                          |\n\n### Local Databases\n\n- It is recommended to use a local document database with [kth-node-backend](https://github.com/KTH/kth-node-backend)\n\n## Usage\n\nStart the application in local development mode:\n\n```sh\n$ npm run start-dev\n```\n\nAccess the Swagger UI on [localhost:3001/api/node/swagger](http://localhost:3001/api/node/swagger/index.html). Authorize with API key set with environment variable `API_KEYS`. Default value is `1234`.\n\n## Running Tests\n\nTests are setup with [Jest](https://jestjs.io/). Run them with:\n\n```\n$ npm test\n```\n\n## Contact\n\nNode API is developed and maintained by [Team KTH Web](https://github.com/orgs/KTH/teams/web-team).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkth%2Fnode-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkth%2Fnode-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkth%2Fnode-api/lists"}