transactions-api

🎲 API REST - credit and debit transactions

APACHE-2.0 License

Stars
1

📷 Screenshot

📃 Description

A simple API that allows the user to carry out credit and debit transactions

📌 Endpoints

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

⚙️ Running the App

🌐 Web

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

💻 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

🛠️ Tools

🧑 Contributors

Badges
Extracted from project README
All Contributors
Related Projects