Gustavohps10 / transactions-api

🎲 API REST - credit and debit transactions
https://transactions-api-d9kj.onrender.com/
Apache License 2.0
1 stars 0 forks source link
fastify knex nodejs rest-api sqlite typescript vitest zod

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