Skip to content

Urigo/accounter-fullstack

Repository files navigation

Accounter

Manage your taxes.

Getting started

  1. Switch to the correct version of Node.js:
nvm use $(cat .node-version)
  1. Install dependencies:
yarn install
  1. Create .env file:
cp .env.template .env
  1. Run setup:
yarn local:setup
  1. Run client and server:
yarn build
yarn client:dev
yarn server:dev
# Also helpful while developing:
yarn generate:watch

Or use the VSCode Terminals extension: fabiospampinato.vscode-terminals to run all this for you in different terminals.

  1. Visit http://localhost:3001/ and sign in. The credentials to log in are in your .env file under AUTHORIZED_USERS. Set the hashed password in the .env file. e.g. replace SECRET with $2b$10$SuqbDX5r6qZidiMbAcGnFOPloNQSRQrLEPShZjplabtfdN.QzS4ba. And then use the password SECRET to log in.

  2. Seed the database with your business details. Edit scripts/seed.ts with your info, then run yarn seed.

  3. Load your data into the database (first set correct env vars):

yarn scrape
  1. Generate businesses by visiting http://localhost:4000/graphql

Set your headers at the bottom:

{
  "authorization": "Basic [YOUR_TOKEN]"
}

You can find YOUR_TOKEN by in the GraphQL request headers in your browser's Network tab.

Then run this mutation:

mutation {
  batchGenerateBusinessesOutOfTransactions {
    id
    name
  }
}

Miscellaneous

Multiple Bank Branches

For Poalim Bank and Discount Bank accounts, your account may appear under multiple branch numbers:

  • Your account number and bank number remain the same
  • The same account might be associated with 2-3 different branch numbers
  • You can configure all relevant branch numbers in the scripts/seed.ts file

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published