Microservice for accounting📋
-
Copy and rename file
.env.sample
to.env
. -
Generate two UUIDv4 IDs for cashbook and revenue accounts. You can use online generators (see https://www.uuidgenerator.net/version4).
-
Add information about cashbook and revenue to
.env
file:Example:
# Accounting Cashbook account identifier CASHBOOK_ACCOUNT_ID=#Your UUIDv4 cashbook account ID CASHBOOK_ACCOUNT_NAME="Hawk Cashbook account" # Accounting Revenue account identifier REVENUE_ACCOUNT_ID=#Your UUIDv4 revenue account ID REVENUE_ACCOUNT_NAME="Hawk Revenue account"
-
Install dependencies by
yarn install
. -
Run accounting service by
yarn dev
oryarn docker:up
commands. -
Run MongoDB migrations by
yarn migrate:up
.You will see a message like this:
yarn run v1.21.1 $ migrate-mongo up MIGRATED UP: 20200724163828-base-accounts.js Done in 1.26s.
🎉Now you can use accounting service in your projects🎉