{"id":14989757,"url":"https://github.com/lhenriquegomescamilo/template-server-nodejs","last_synced_at":"2025-04-12T01:21:40.784Z","repository":{"id":97035676,"uuid":"93124073","full_name":"lhenriquegomescamilo/template-server-nodejs","owner":"lhenriquegomescamilo","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-04T02:49:45.000Z","size":70,"stargazers_count":20,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T21:03:59.232Z","etag":null,"topics":["chai","docker","mocha","nodejs","passaport-jwt","postgres","sequelize","supertest","test-doubles","typescript"],"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/lhenriquegomescamilo.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":"2017-06-02T03:39:45.000Z","updated_at":"2020-04-08T12:58:13.000Z","dependencies_parsed_at":"2024-03-09T03:31:37.237Z","dependency_job_id":null,"html_url":"https://github.com/lhenriquegomescamilo/template-server-nodejs","commit_stats":{"total_commits":85,"total_committers":2,"mean_commits":42.5,"dds":"0.21176470588235297","last_synced_commit":"61fd6e2beb451fa977fde66b0c47fe37e05f98d3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhenriquegomescamilo%2Ftemplate-server-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhenriquegomescamilo%2Ftemplate-server-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhenriquegomescamilo%2Ftemplate-server-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhenriquegomescamilo%2Ftemplate-server-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lhenriquegomescamilo","download_url":"https://codeload.github.com/lhenriquegomescamilo/template-server-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501862,"owners_count":21114685,"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":["chai","docker","mocha","nodejs","passaport-jwt","postgres","sequelize","supertest","test-doubles","typescript"],"created_at":"2024-09-24T14:18:52.400Z","updated_at":"2025-04-12T01:21:40.751Z","avatar_url":"https://github.com/lhenriquegomescamilo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)\n[![Travis](https://img.shields.io/travis/lhenriquegomescamilo/template-server-nodejs.svg)](https://img.shields.io/travis/lhenriquegomescamilo/template-server-nodejs.svg)\n\n# Template Server Rest API\n\n This project is a base template for Node.js Rest API applications, using the follow stack: \n \n   * [TypeScript](https://github.com/Microsoft/TypeScript), [ES6](http://es6-features.org/), \n   * [Sequelize](http://docs.sequelizejs.com/), \n   * [Postgres](https://www.postgresql.org/), \n   * [Express JS](http://expressjs.com/), \n   * [Passport JS](http://passportjs.org/) with [JWT](https://jwt.io/), \n   * [Mocha](https://github.com/mochajs/mocha), \n   * [Chai](http://chaijs.com/), \n   * [supertest](https://github.com/visionmedia/supertest), \n   * [test-double](https://github.com/testdouble/testdouble.js).\n\n## Requirements\n * NodeJS 6.10.2+ Support ES6\n * NPM 3.10.10+ \n * Docker lastest\n \n## Run postgres with docker\nFirst create the database postgres inside docker with command:\n\n```sh\n\n  docker-compose up\n\n```\nThe [Docker Compose](https://docs.docker.com/compose/) will create the database called ts-api\n\n\n## Run application\n\nInside the project root folder use the command\n\n```sh\n\n  npm install\n  npm run compile \u0026\u0026 npm start\n  \n```\n\nTo start the server with ts-node, use the command:\n\n```sh\n\n  npm run start-dev\n \n```\n\n## Run tests\n\n```sh\n  npm run comiple \u0026\u0026 npm run integration-test\n  npm run compile \u0026\u0026 npm run integration-coverage\n\n```\n\n## Licence\n\nThis project is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhenriquegomescamilo%2Ftemplate-server-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flhenriquegomescamilo%2Ftemplate-server-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhenriquegomescamilo%2Ftemplate-server-nodejs/lists"}