{"id":19874731,"url":"https://github.com/dxphilo/elk2","last_synced_at":"2026-06-10T12:31:04.672Z","repository":{"id":207267818,"uuid":"718837257","full_name":"dxphilo/elk2","owner":"dxphilo","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-22T10:02:55.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T01:27:48.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://elk2.onrender.com/imagekit","language":"TypeScript","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/dxphilo.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T22:25:04.000Z","updated_at":"2023-11-14T22:55:32.000Z","dependencies_parsed_at":"2024-11-12T16:28:37.048Z","dependency_job_id":"b6c5bad2-cbcc-49a7-ac7e-872d598facdc","html_url":"https://github.com/dxphilo/elk2","commit_stats":null,"previous_names":["dxphilo/elk2"],"tags_count":0,"template":false,"template_full_name":"chrispanag/node-typescript-boilerplate","purl":"pkg:github/dxphilo/elk2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxphilo%2Felk2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxphilo%2Felk2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxphilo%2Felk2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxphilo%2Felk2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxphilo","download_url":"https://codeload.github.com/dxphilo/elk2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxphilo%2Felk2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34153482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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-12T16:25:12.136Z","updated_at":"2026-06-10T12:31:04.648Z","avatar_url":"https://github.com/dxphilo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Boilerplate Nodejs App\n\nA simple boilerplate code for bootstrapping a NodeJS Express backend in Typescript.\n\n## Batteries included\n\n* cors\n* body-parser\n* compress\n* .env environment variables\n* simple console logging for requests\n* prettier, eslint and nodemon for rapid development\n\n## Suggested VSCode Plugins\n\n1. ESLint\n2. Prettier\n3. DotENV\n\n## How to start\n\n1. Create a copy of `example.env` named `.env`\n2. `yarn install`\n3. `yarn run dev`\n4. `Start adding stuff`\n\n## Commands\n\n* `yarn start` - Starts the app. Needs to be builded first\n* `yarn run build` - Builds the app (typescript compilation)\n* `yarn run dev` - Starts nodemon (Auto-restart on changes with auto-rebuild)\n\n## FAQ\n\n### Where do I add environment variables?\n\nAll of the env variables are handled within the `env.ts` file. This file exports the env variable that includes all the environment variables imported. When you add a new environment variable, make sure to add it to the `.env` file and to the `example.env` file for sharing it with others. **Remember to only put sensitive data on the `.env` file and not on the `example.env` one**.\n\n### How do I add a new controller?\n\nJust copy the hello-world.ts file and start working. Remember afterwards to add an `app.use` statement on the `app.ts` file.\n\n### How do I add a database?\n\nIf you want to add mongodb, install the necessary packages (mongodb, mongoose with their respective types) and proceed. For SQL, I suggest typeorm, with the respective driver (mysql, postgres etc).\n\nYou will also need to create a new database. The easiest way to achieve that is to create a docker instance. But you can always connect to an already existing mongodb (see [mongodb atlas](https://www.mongodb.com/cloud/atlas)).\n\n## Todo\n\n* Add a testing framework\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxphilo%2Felk2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxphilo%2Felk2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxphilo%2Felk2/lists"}