{"id":21706667,"url":"https://github.com/luizcalaca/api-test-finance","last_synced_at":"2026-04-11T17:04:27.181Z","repository":{"id":45233989,"uuid":"441688420","full_name":"luizcalaca/api-test-finance","owner":"luizcalaca","description":"API with TDD","archived":false,"fork":false,"pushed_at":"2022-01-06T18:13:01.000Z","size":382,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T16:08:47.120Z","etag":null,"topics":["integration-testing","jest","knexjs","nodejs","supertest","tdd"],"latest_commit_sha":null,"homepage":"","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/luizcalaca.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}},"created_at":"2021-12-25T13:48:57.000Z","updated_at":"2022-06-13T03:10:23.000Z","dependencies_parsed_at":"2022-09-06T02:00:32.489Z","dependency_job_id":null,"html_url":"https://github.com/luizcalaca/api-test-finance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizcalaca%2Fapi-test-finance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizcalaca%2Fapi-test-finance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizcalaca%2Fapi-test-finance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizcalaca%2Fapi-test-finance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luizcalaca","download_url":"https://codeload.github.com/luizcalaca/api-test-finance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244656728,"owners_count":20488640,"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":["integration-testing","jest","knexjs","nodejs","supertest","tdd"],"created_at":"2024-11-25T22:13:57.416Z","updated_at":"2026-04-11T17:04:27.139Z","avatar_url":"https://github.com/luizcalaca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api-test-finance\n\n[![N|Solid](https://res.cloudinary.com/practicaldev/image/fetch/s--S6Nn_hYs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3fnnfif593kiswfmwwen.jpg)](https://jestjs.io/pt-BR/)\n\nThe main goal is showed a TDD development with some importants tools.\n\n## Features\n\n- TDD with Jest\n- NodeJS\n- Express\n- Knex\n- Docker\n- Linter\n- PostgreSQL\n\n## ESLint\n\nInitial configuration (after install)\n\n```sh\n./node_modules/.bin/eslint --init\n```\n\nFix all problems\n\n```sh\n./node_modules/.bin/eslint --fix .\n```\n\n## Some importants advises\n\nImportant to use a secure mode from Jest. It is into package.json scripts: `\"secure-mode\": \"jest --watchAll\"`\n\n```sh\nnpm run secure-mode\n```\n\n## Installations and details\n\nHere is just some informations. To install all dependences is:\n\n```sh\nnpm install\n```\n\nSome informations:\n\n```sh\nnpm i -S -E body-parser # get the data from send method and take into body\n```\n\n```sh\nnpm i -S -E consign # consign include all imported middlewares into app.js\n```\n\n## Docker\n\n```sh\ndocker-compose up\n```\n\n\u003e Note: `-d` is required after up for run on background.\n\n## Knex\n\n```sh\n node_modules/.bin/knex migrate:make create_users --env test\n```\n\n```sh\n node_modules/.bin/knex migrate:latest --env test\n```\n\n```sh\n node_modules/.bin/knex migrate:rollback --env test\n```\n\ntest is the name into the knexfile.js\n\n\n## Jest\n\ntest.skip (ignores  it)\n\ntest.only (executes just it on the file)\n\n\n## License\n\nMIT\n\n**Free Software, Yeah!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizcalaca%2Fapi-test-finance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluizcalaca%2Fapi-test-finance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizcalaca%2Fapi-test-finance/lists"}