Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gustavohps10/transactions-api

🎲 API REST - credit and debit transactions
https://github.com/gustavohps10/transactions-api

fastify knex nodejs rest-api sqlite typescript vitest zod

Last synced: 23 days ago
JSON representation

🎲 API REST - credit and debit transactions

Awesome Lists containing this project

README

        

Transactions REST API






## :camera: Screenshot

## :page_with_curl: Description
A simple API that allows the user to carry out credit and debit transactions

## :pushpin: Endpoints

```
POST /transactions
GET /transactions
GET /transactions/:id
GET /transactions/summary
```

## :gear: Running the App

### :globe_with_meridians: Web
You can access this url: https://transactions-api-d9kj.onrender.com if it is still working ¯\\_(ツ)_/¯

### :computer: Local
First fork and clone this repo. Feel free to create new pull requests

#### Environment
Rename .env.example to .env and set variables
```
NODE_ENV=development
DATABASE_CLIENT=sqlite
DATABASE_URL="./db/app.db"

HOST=localhost
PORT=3333
```
#### Install dependencies
```
npm install
```

#### Migrate database
```
npm run knex migrate:latest
```

#### Run server
```
npm run dev
```

#### Test
```
npm test
```

## :hammer_and_wrench: Tools









## :adult: Contributors



Gustavo Henrique
Gustavo Henrique

💻

[![All Contributors](https://img.shields.io/github/all-contributors/Gustavohps10/transactions-api?color=ee8449&style=flat-square)](#contributors)