Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/nitohu/accounting

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nitohu/accounting

  • v0.0.0-20210212193430-1d61a06345f5
  • Source
  • Go
  • Socket score

Version published
Created
Source

Accounting

This is an accounting application which is developed in go.

You can create accounts, transactions, categorise them and have statistics which whom you can analyze your finances. The server (master) of this application is written in Golang.

Requirements

Installations

  • Golang https://golang.org/dl/
  • Postgresql https://www.postgresql.org/download/

Recommendation:

  • If you aren't familiar with Postgres or SQL in general, it might be helpful to install pgAdmin:

https://www.pgadmin.org/download/

Set up your database

!!! If you are manually inserting records into the database, please always make sure none of the fields in the record are NULL !!!

Create the database inside postgres:

> CREATE DATABASE accounting;
-- Connect to the database
> \c accounting

Open the db.sql file and execute the SQL commands for creating the tables.

You can now insert the queries for the statistics in the statistics table. Please make sure none of the fields are NULL, use an empty string or a placeholder instead.

Please use the following external IDs and types of visualisation for the statistics to display them properly on the dashboard:

NameExternal Identifier Visualisation
Total Number of Transactions last 30 daystransaction_countnumber
Total Balancetotal_balancenumber
Balance per daybalance_per_daybar
Total Amount per Categorytotal_category_amountpie
Amount per Category, last 30 dayspast_category_amountpie
Total expenses last 30 daystotal_expensesnumber
Total income last 30 daystotal_incomenumber
Average balance per day, totaltotal_avg_balancenumber

Set a master password

You need to set a master password for the application, so that you can login. You need to insert the record manually into the statistics table.

Use the following SQL command for inserting the record into the settings table:

INSERT INTO settings (name, password, email, last_update, calc_interval, calc_uom, currency, session_key, salary_date) VALUES (
    'your name',
    '8C6976E5B5410415BDE908BD4DEE15DFB167A9C873FC4BB8A81F6F2AB448A918',
    'your email',
    NOW(),
    30,
    'minutes',
    '€',
    '',
    NOW()
);

The password in this query is admin.

If you want to set your own password, please encrypt it with Sha256.

FAQs

Package last updated on 12 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc