/api-rest-nodejs-fastify

A api rest in Nodejs using fastify, Knex, zod and tests with videtes + supertest

Primary LanguageTypeScript

Software requirements

FR

  • The user must be able to create a new transaction;
  • The user must be able to obtain a summary of his account;
  • The user must be able to list all transactions that have already occurred;
  • The user must be able to view a single transaction;

NFR

  • The transaction can be of the credit type that will add to the total amount, or debit will subtract;
  • It must be possible to identify the user among the requests;
  • User can only view transactions which he created;