/caixa-virtual-api

API de uma Carteira Digital com Balanço e Transações

Primary LanguageTypeScript

Caixa Virtual API

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   API Docs   |   Environment File


About

A NodeJS API to register Cash Flow built with TypeScript and SOLID pattern

Features

✔️ Register Cash Flow (Income/Outcome);
✔️ Register User;
✔️ Financial Summary.

Technologies

This project uses:

Requirements

Before you start the project you will need Docker installed in your machine.

Starting

# Install dependencies
$ yarn install

# Build application
$ yarn build

# Test application
$ yarn test

API Docs

To check the API documentaton and endpoints, see Documentation


Creating Docker

Environment File

Before you create the Microservice, you need to configure you .env.example file and change to .env. DB_HOST must be set to the same name as the Database Docker service. i.e. db

After you configure the .env and build you API, you can run docker-compose up -d --no-recreate command. This will create two docker instances, one for the NodeJS API and the other for the PostgreSQL database and run the TypeORM Migrations.