{"id":15781322,"url":"https://github.com/gustavohps10/transactions-api","last_synced_at":"2025-04-01T20:36:46.123Z","repository":{"id":241636558,"uuid":"806808784","full_name":"Gustavohps10/transactions-api","owner":"Gustavohps10","description":"🎲 API REST - credit and debit transactions","archived":false,"fork":false,"pushed_at":"2024-06-06T03:07:19.000Z","size":138,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T19:22:08.566Z","etag":null,"topics":["fastify","knex","nodejs","rest-api","sqlite","typescript","vitest","zod"],"latest_commit_sha":null,"homepage":"https://transactions-api-d9kj.onrender.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gustavohps10.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":"2024-05-28T00:27:39.000Z","updated_at":"2024-06-06T03:07:22.000Z","dependencies_parsed_at":"2024-10-04T19:01:10.951Z","dependency_job_id":null,"html_url":"https://github.com/Gustavohps10/transactions-api","commit_stats":null,"previous_names":["gustavohps10/fastify-api","gustavohps10/transactions-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Ftransactions-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Ftransactions-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Ftransactions-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustavohps10%2Ftransactions-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gustavohps10","download_url":"https://codeload.github.com/Gustavohps10/transactions-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709931,"owners_count":20821297,"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":["fastify","knex","nodejs","rest-api","sqlite","typescript","vitest","zod"],"created_at":"2024-10-04T19:00:58.348Z","updated_at":"2025-04-01T20:36:46.102Z","avatar_url":"https://github.com/Gustavohps10.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eTransactions REST API\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/top/Gustavohps10/transactions-api?color=1e1e1e\"/\u003e\n    \u003cimg src=\"https://img.shields.io/github/commit-activity/w/Gustavohps10/transactions-api?color=1e1e1e\"/\u003e\n    \u003cimg src=\"https://img.shields.io/github/created-at/gustavohps10/transactions-api?color=1e1e1e\"/\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/gustavohps10/transactions-api?color=1e1e1e\"/\u003e\n\u003c/div\u003e\n\n## :camera: Screenshot\n\u003cp align=\"center\"\u003e\u003cimg width=\"80%\" src=\"https://github.com/Gustavohps10/transactions-api/assets/61752235/f9be30cc-a80b-4ed5-b343-afbc4f017caf\"\u003e\u003c/p\u003e\n\n## :page_with_curl: Description\nA simple API that allows the user to carry out credit and debit transactions\n\n## :pushpin: Endpoints\n\n```\nPOST /transactions\nGET  /transactions \nGET  /transactions/:id\nGET  /transactions/summary \n```\n\n## :gear: Running the App\n\n### :globe_with_meridians: Web \nYou can access this url: https://transactions-api-d9kj.onrender.com if it is still working ¯\\\\_(ツ)_/¯\n\n### :computer: Local\nFirst fork and clone this repo. Feel free to create new pull requests\n\n#### Environment \nRename .env.example to .env and set variables\n```\nNODE_ENV=development\nDATABASE_CLIENT=sqlite\nDATABASE_URL=\"./db/app.db\"\n\nHOST=localhost\nPORT=3333\n```\n#### Install dependencies\n```\nnpm install\n```\n\n#### Migrate database\n```\nnpm run knex migrate:latest\n```\n\n#### Run server\n```\nnpm run dev\n```\n\n#### Test\n```\nnpm test\n```\n\n## :hammer_and_wrench: Tools\n\u003cp\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=Node.js\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=node.js\u0026style=flat-square\"\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=TypeScript\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=typescript\u0026style=flat-square\"\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=Fastify\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=fastify\u0026style=flat-square\"\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=Zod\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=zod\u0026style=flat-square\"\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=Knex.js\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=knex.js\u0026style=flat-square\"\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=SQLite\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=sqlite\u0026style=flat-square\"\u003e\n\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=Vitest\u0026colorA=2a2a2a\u0026colorB=1a1a1e\u0026logo=vitest\u0026style=flat-square\"\u003e\n\u003c/p\u003e\n\n\n## :adult: Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.gustavohenrique.site/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/61752235?v=4?s=100\" width=\"100px;\" alt=\"Gustavo Henrique\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGustavo Henrique\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#code-Gustavohps10\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n[![All Contributors](https://img.shields.io/github/all-contributors/Gustavohps10/transactions-api?color=ee8449\u0026style=flat-square)](#contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavohps10%2Ftransactions-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavohps10%2Ftransactions-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavohps10%2Ftransactions-api/lists"}