Skip to content

GoFinances is a simple project of transaction management, where you can visualize your balance account and the movimation of the transactions.

Notifications You must be signed in to change notification settings

paulo-carvalho93/gofinances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

screenshot

GitHub top language GitHub language count

GoFinances is a simple project of transaction management, where you can visualize your balance account and the movimation of the transactions.

screenshot

Features

  • Possibility to include different types of transactions and check out the incomes, outcomes, and balance.
  • Allow the import of a CSV file to generate new records in the database.

Summary

🚀 Technology

react nodejs typescript styledcomponents

💻 Application

The application was developed with Typescript using the framework ReactJS and Styled-Components for visual proposes.

The backend is using Multer and CSV Parse to upload the CSV file and insert new records in the database.


💥 How to run

  • Prerequisites

    • It's necessary to have Node.js installed on the computer
    • It's necessary to have Git installed and configured on the computer
    • Also, it's necessary to have a package manager either NPM or Yarn.
    • Finally, it is essential to have Docker installed to run database Postgres.

Creating database Postgres:

  $ docker run --name gofinances -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres

Clone the repository:

  $ git clone https://github.com/paulo-carvalho93/gofinances.git

🔨 Backend

  # API
  $ cd gofinances/backend
  # Installing project dependencies.
  $ yarn # or npm install

  # Start Web Project
  $ yarn dev:server # or npm dev:server

💻 Web

  # API
  $ cd gofinances/web
  # Installing project dependencies.
  $ yarn # or npm install

  # Start Web Project
  $ yarn start # or npm start
You can find the file inside the test folder at Backend. (import_template.csv)
    {
      "title": "House",
      "value": 140000,
      "type": "outcome",
			"category": "Properties"
    },
    {
      "title": "Lottery",
      "value": 2000000,
      "type": "income",
			"category": "Lucky"
    }
{
  "transactions": [
    {
      "id": "62500601-fa5f-4359-8358-bb884566ce8d",
      "title": "Loan",
      "type": "income",
      "value": "1500.00",
      "category_id": "6d205f93-6d38-4228-bc8f-ac6292639f91",
      "created_at": "2020-11-12T02:29:21.346Z",
      "updated_at": "2020-11-12T02:29:21.346Z"
    },
    {
      "id": "4c06b395-4ffe-416e-88ef-4070774290f1",
      "title": "Website Hosting",
      "type": "outcome",
      "value": "50.00",
      "category_id": "6d205f93-6d38-4228-bc8f-ac6292639f91",
      "created_at": "2020-11-12T02:29:21.346Z",
      "updated_at": "2020-11-12T02:29:21.346Z"
    },
    {
      "id": "0850d442-359d-468c-93a8-b34faad13d5a",
      "title": "Ice cream",
      "type": "outcome",
      "value": "3.00",
      "category_id": "6cffd494-2bfa-4318-ab11-056a0c34a765",
      "created_at": "2020-11-12T02:29:21.346Z",
      "updated_at": "2020-11-12T02:29:21.346Z"
    }
  ],
  "balance": {
    "income": 1500,
    "outcome": 53,
    "total": 1447
  }
}

About

GoFinances is a simple project of transaction management, where you can visualize your balance account and the movimation of the transactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published