{"id":26509034,"url":"https://github.com/rafaelmotaalvess/transact-api","last_synced_at":"2025-03-21T00:46:04.052Z","repository":{"id":204564326,"uuid":"711254025","full_name":"RafaelMotaAlvess/Transact-API","owner":"RafaelMotaAlvess","description":"Node Rest API for financial transactions","archived":false,"fork":false,"pushed_at":"2023-10-30T21:31:33.000Z","size":551,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-30T23:27:47.039Z","etag":null,"topics":["e2e-tests","fastify","knex","sqlite3","supertest","tsup","typescript","vitest","zod"],"latest_commit_sha":null,"homepage":"https://transact-api-nv3k.onrender.com","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/RafaelMotaAlvess.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}},"created_at":"2023-10-28T17:12:22.000Z","updated_at":"2023-10-30T23:27:48.989Z","dependencies_parsed_at":null,"dependency_job_id":"ce0d570a-c5ad-4b1a-aa83-00e5d529f1f1","html_url":"https://github.com/RafaelMotaAlvess/Transact-API","commit_stats":null,"previous_names":["rafaelmotaalvess/transact-api"],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelMotaAlvess%2FTransact-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelMotaAlvess%2FTransact-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelMotaAlvess%2FTransact-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafaelMotaAlvess%2FTransact-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RafaelMotaAlvess","download_url":"https://codeload.github.com/RafaelMotaAlvess/Transact-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717337,"owners_count":20498283,"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":["e2e-tests","fastify","knex","sqlite3","supertest","tsup","typescript","vitest","zod"],"created_at":"2025-03-21T00:46:02.828Z","updated_at":"2025-03-21T00:46:04.021Z","avatar_url":"https://github.com/RafaelMotaAlvess.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Transact API\n\n[![wakatime](https://wakatime.com/badge/user/0cca606b-99f7-4d43-8228-7f249bc17f26/project/018b774b-036e-4abc-9950-28de5d1a6f68.svg)](https://wakatime.com/badge/user/0cca606b-99f7-4d43-8228-7f249bc17f26/project/018b774b-036e-4abc-9950-28de5d1a6f68)\n\n\u003e **Transact API** is a Node Rest API for credit and debit financial transactions.\n\n## Introductions 📖\n\n- [🔎 About](#🔎-About)\n- [🔧 Technologies](#🔧-Technologies)\n- [✨ How to Run](#✨-How-to-Run)\n- [🚩 Endpoints](#🚩-Endpoints)\n- [📃 License](#📃-License)\n\n## 🔎 About\n\nThe project was conducted for studies on REST APIs, developed in TypeScript, and utilizing technologies like Fastify, which efficiently handles HTTP requests, Knex, which simplifies database interaction, and various other tools that assist in the development process.\n\n- [x] The user should be able to create an transaction.\n- [x] The user should be able to obtain an transaction statement.\n- [x] The user should be able to list all transactions that have occurred.\n- [x] The user should be able to view a single transaction.\n\n## 🔧 Technologies\n\n- \u003ca target=\"_blank\" href=\"https://www.typescriptlang.org\"\u003eTypeScript\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://fastify.dev\"\u003eFastify\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://knexjs.org\"\u003eKnex\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://vitest.dev\"\u003eVitest\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://www.postgresql.org\"\u003ePostgreSQL\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://www.sqlite.org/index.html\"\u003eSQLite\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://zod.dev\"\u003eZod\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://github.com/ladjs/supertest#readme\"\u003eSupertest\u003c/a\u003e\n- \u003ca target=\"_blank\" href=\"https://tsup.egoist.dev\"\u003eTsup\u003c/a\u003e\n\n## ✨ How to Run\n\n- ### **Prerequisites**\n  - It is **required** to have **Git** installed and configured on your computer.\n  - It is **required** to have **NodeJS** installed and configured on your computer.\n\n#### 1. Make a clone of the repository.\n\n```bash\n  $ git clone https://github.com/RafaelMotaAlvess/Transact-API.git\n```\n\n#### 2. Install the project's dependencies via the terminal.\n\n```bash\n$ npm install\n```\n\n#### 3. In the project folder, you will find a file named example.env Make a copy of it and rename it to .env\n\n#### 4. In the project folder, you will find a file named example.env. Make a copy of it and rename it to .env\n\n#### 5. (Optional) Add the port you desire by setting the environment variable \"port.\"\n\n```env\n   PORT= \"Add the port you will use.\"\n```\n\n#### 6. Run the migration\n\n```bash\n    npm run knex -- migrate:latest\n```\n\n#### 7. Start the server.\n\n```bash\n    npm run dev\n```\n\n## 🚩 Endpoints\n\n| Method                      | Description                |\n| --------------------------- | -------------------------- |\n| `POST /transactions`        | Create new transaction     |\n| `GET /transactions`         | List all transactions      |\n| `GET /transactions/:id`     | Get a specific transaction |\n| `GET /transactions/summary` | Get the summary            |\n\n## 📃 License\n\nThe project is under the license [MIT license](./LICENSE).\n\n---\n\n\u003csup\u003eThis application was developed under the mentorship of [Rocketseat](https://www.rocketseat.com.br).\u003c/sup\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelmotaalvess%2Ftransact-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelmotaalvess%2Ftransact-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelmotaalvess%2Ftransact-api/lists"}