Manage your taxes.
- Switch to the correct version of Node.js:
nvm use $(cat .node-version)
- Install dependencies:
yarn install
- Create
.env
file:
cp .env.template .env
- Run setup:
yarn local:setup
- 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.
-
Visit http://localhost:3001/ and sign in. The credentials to log in are in your
.env
file underAUTHORIZED_USERS
. Set the hashed password in the.env
file. e.g. replaceSECRET
with$2b$10$SuqbDX5r6qZidiMbAcGnFOPloNQSRQrLEPShZjplabtfdN.QzS4ba
. And then use the passwordSECRET
to log in. -
Seed the database with your business details. Edit
scripts/seed.ts
with your info, then runyarn seed
. -
Load your data into the database (first set correct env vars):
yarn scrape
- 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
}
}
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