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

github.com/lassilaiho/expenditure-accounting/server

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/lassilaiho/expenditure-accounting/server

  • v0.0.0-20210112183924-71a516145b4f
  • Source
  • Go
  • Socket score

Version published
Created
Source

expenditure-accounting server

This is the expenditure-accounting API server. It requires a PostgreSQL database.

Building

Run tests with

go test ./...

Tests require access to Docker to create a temporary PostgreSQL instance for the test run.

Build the server by running

go build -o server

The server requires a command line parameter -config <CONFIG_FILE>. The configuration file is a JSON file with the following options:

OptionTypeDefault valueDescription
portint8080port to listen to
bcryptCostint14cost of bcrypt algorithm used to hash passwords
sessionTimeoutduration string1hclient session timeout
refreshTimeduration string15mthe amount of time sessionTimeout is postponed when client communicates with server
rootURLstring/apiThe root URL of the API server
allowedOriginsarray of stringsempty arrayorigins allowed in CORS headers
dbConnectionStringstringconnection string to connect to database

If an option doesn't have a default value, it is required in the configuration file. Duration strings are parsed as Go duration values.

FAQs

Package last updated on 12 Jan 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